IServiceProxyAdministration.CreateProxy Method
Creates an instance of the specified service application proxy type.
Namespace: Microsoft.SharePoint.Administration
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No
Syntax
'Declaration
Function CreateProxy ( _
serviceApplicationProxyType As Type, _
name As String, _
serviceApplicationUri As Uri, _
provisioningContext As SPServiceProvisioningContext _
) As SPServiceApplicationProxy
'Usage
Dim instance As IServiceProxyAdministration
Dim serviceApplicationProxyType As Type
Dim name As String
Dim serviceApplicationUri As Uri
Dim provisioningContext As SPServiceProvisioningContext
Dim returnValue As SPServiceApplicationProxy
returnValue = instance.CreateProxy(serviceApplicationProxyType, _
name, serviceApplicationUri, provisioningContext)
SPServiceApplicationProxy CreateProxy(
Type serviceApplicationProxyType,
string name,
Uri serviceApplicationUri,
SPServiceProvisioningContext provisioningContext
)
Parameters
serviceApplicationProxyType
Type: System.TypeThe type of service application proxy to create.
name
Type: System.StringThe name of the new service application proxy.
serviceApplicationUri
Type: System.UriThe uniform resource identifier (URI) for the new service application proxy.
provisioningContext
Type: Microsoft.SharePoint.Administration.SPServiceProvisioningContextDefault provisioning parameters for the new service application proxy.
Return Value
Type: Microsoft.SharePoint.Administration.SPServiceApplicationProxy
Returns a new service application proxy.
See Also
Reference
IServiceProxyAdministration Interface