共用方式為


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)
Available in Sandboxed Solutions: No

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)
SPServiceApplicationProxyIServiceAdministration.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