Share via


SPServiceContext.GetDefaultProxy-Methode

Gibt die Standard-Dienstanwendungsproxy für den angegebenen Typ zurück.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'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
)

Parameter

  • serviceApplicationProxyType
    Typ: System.Type

    Der Typ, der angibt, welche Standard-Dienstanwendungsproxy zurückgegeben.

Rückgabewert

Typ: Microsoft.SharePoint.Administration.SPServiceApplicationProxy
Ein SPServiceApplicationProxy , das ist der Standard-Proxy für den angegebenen Typ.

Hinweise

null, wenn serviceApplicationProxyType null ist, gibt GetDefaultProxy(Type) zurück.

GetDefaultProxy(Type) gibt null, wenn kein Standard-Dienstanwendungsproxy für den angegebenen Typ zurück.

Siehe auch

Referenz

SPServiceContext Klasse

SPServiceContext-Member

Microsoft.SharePoint-Namespace