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

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.

See also

Reference

SPUsageService class

SPUsageService members

Microsoft.SharePoint.Administration namespace