SPUsageService.IServiceAdministration.CreateProxy method
If no proxy exists for the usage application this method creates one.
Namespace: Microsoft.SharePoint.Administration
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'Declaration
Private Function CreateProxy ( _
name As String, _
serviceApplication As SPServiceApplication, _
provisioningContext As SPServiceProvisioningContext _
) As SPServiceApplicationProxy Implements IServiceAdministration.CreateProxy
'Usage
Dim instance As SPUsageService
Dim name As String
Dim serviceApplication As SPServiceApplication
Dim provisioningContext As SPServiceProvisioningContext
Dim returnValue As SPServiceApplicationProxy
returnValue = CType(instance, IServiceAdministration).CreateProxy(name, _
serviceApplication, provisioningContext)
SPServiceApplicationProxy IServiceAdministration.CreateProxy(
string name,
SPServiceApplication serviceApplication,
SPServiceProvisioningContext provisioningContext
)
Parameters
name
Type: System.StringName of the new or existing proxy.
serviceApplication
Type: Microsoft.SharePoint.Administration.SPServiceApplicationThe usage application for which the proxy is created (if a proxy does not already exist).
provisioningContext
Type: Microsoft.SharePoint.Administration.SPServiceProvisioningContextProvisioning context data for the new proxy.
Return value
Type: Microsoft.SharePoint.Administration.SPServiceApplicationProxy
The new SPServiceApplicationProxy or an existing proxy if one already exists.
Implements
IServiceAdministration.CreateProxy(String, SPServiceApplication, SPServiceProvisioningContext)
Remarks
Note
The only service type supported for having a proxy are SPUsageApplications.