Consuming a geoprocessing custom model in .NET
LicenseInitializer.vb
' Copyright 2012 ESRI
' 
' All rights reserved under the copyright laws of the United States
' and applicable international laws, treaties, and conventions.
' 
' You may freely redistribute and use this sample code, with or
' without modification, provided you include the original copyright
' notice and use restrictions.
' 
' See the use restrictions.
' 

Imports ESRI.ArcGIS

Partial Friend Class LicenseInitializer

  Public Sub New()
    ' TODO: Uncomment if implicit runtime binding (pre-10 version) is allowed
    ' AllowImplicitRuntimeBinding = True
  End Sub

  Private Sub BindingArcGISRuntime(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.ResolveBindingEvent
    ' TODO: Add ESRI.ArcGIS.RuntimeManager code to load target ArcGIS runtime here

  End Sub

End Class