SPServiceContext.GetDefaultProxy method
Returns the default service application proxy for the specified type.
Namespace: Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
'Declaration
Public Function GetDefaultProxy ( _
serviceApplicationProxyType As Type _
) As SPServiceApplicationProxy
'Usage
Dim instance As SPServiceContext
Dim serviceApplicationProxyType As Type
Dim returnValue As SPServiceApplicationProxy
returnValue = instance.GetDefaultProxy(serviceApplicationProxyType)
public SPServiceApplicationProxy GetDefaultProxy(
Type serviceApplicationProxyType
)
serviceApplicationProxyType
Type: System.TypeThe type that specifies which default service application proxy to return.
Type: Microsoft.SharePoint.Administration.SPServiceApplicationProxy
A SPServiceApplicationProxy that is the default service application proxy for the specified type.
GetDefaultProxy(Type) returns null if serviceApplicationProxyType is null.
GetDefaultProxy(Type) returns null if there is no default service application proxy for the specified type.