Freigeben über


SPServiceContext.GetProxies-Methode

Gibt einen Enumerator, der zum Durchlaufen der Dienstanwendungsproxys des angegebenen Typs verwendet werden kann.

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
)

Parameter

  • serviceApplicationProxyType
    Typ: System.Type

    Der Typ, der angibt, welche Dienstanwendungsproxys zurückgegeben.

Rückgabewert

Typ: System.Collections.Generic.IEnumerable<SPServiceApplicationProxy>
Eine IEnumerable der Typ SPServiceApplicationProxy , der zum Durchlaufen der Dienstanwendungsproxys verwendet werden kann.IEnumerable<T>.

Hinweise

Verwenden Sie diese Methode, um alle Dienstanwendungsproxy für einen bestimmten Typ zu erhalten.

Siehe auch

Referenz

SPServiceContext Klasse

SPServiceContext-Member

Microsoft.SharePoint-Namespace