SPServiceContext.GetProxies Method
Returns an enumerator that can be used to iterate over the service application proxies of the specified type.
Namespace: Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No
Syntax
'Declaration
Public Function GetProxies ( _
serviceApplicationProxyType As Type _
) As IEnumerable(Of SPServiceApplicationProxy)
'Usage
Dim instance As SPServiceContext
Dim serviceApplicationProxyType As Type
Dim returnValue As IEnumerable(Of SPServiceApplicationProxy)
returnValue = instance.GetProxies(serviceApplicationProxyType)
public IEnumerable<SPServiceApplicationProxy> GetProxies(
Type serviceApplicationProxyType
)
Parameters
serviceApplicationProxyType
Type: System.TypeThe type that specifies which service application proxies to return.
Return Value
Type: System.Collections.Generic.IEnumerable<SPServiceApplicationProxy>
An IEnumerable of type SPServiceApplicationProxy that can be used to iterate through the service application proxies.IEnumerable<T>.
Remarks
Use this method to obtain all the service application proxies for a given type.