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)

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.Type

    The 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.

See also

Reference

SPServiceContext class

SPServiceContext members

Microsoft.SharePoint namespace