SPObjectSharingInformation.GetWebSharingInformation-Methode
Ruft Informationen über die Freigabe des Zustands der aktuellen Site. Die aktuelle Site ist die Site in den Kontext, der diese Methode aufgerufen wird.
Namespace: Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'Declaration
Public Shared Function GetWebSharingInformation ( _
excludeCurrentUser As Boolean, _
excludeSiteAdmin As Boolean, _
excludeSecurityGroups As Boolean, _
retrieveAnonymousLinks As Boolean, _
retrieveUserInfoDetails As Boolean, _
checkForAccessRequests As Boolean _
) As SPObjectSharingInformation
'Usage
Dim excludeCurrentUser As Boolean
Dim excludeSiteAdmin As Boolean
Dim excludeSecurityGroups As Boolean
Dim retrieveAnonymousLinks As Boolean
Dim retrieveUserInfoDetails As Boolean
Dim checkForAccessRequests As Boolean
Dim returnValue As SPObjectSharingInformation
returnValue = SPObjectSharingInformation.GetWebSharingInformation(excludeCurrentUser, _
excludeSiteAdmin, excludeSecurityGroups, _
retrieveAnonymousLinks, retrieveUserInfoDetails, _
checkForAccessRequests)
public static SPObjectSharingInformation GetWebSharingInformation(
bool excludeCurrentUser,
bool excludeSiteAdmin,
bool excludeSecurityGroups,
bool retrieveAnonymousLinks,
bool retrieveUserInfoDetails,
bool checkForAccessRequests
)
Parameter
excludeCurrentUser
Typ: System.BooleanGibt an, ob der zurückgegebene Status Freigabeinformationen Informationen über den Benutzer, der die Anforderung ausgeschlossen werden.
excludeSiteAdmin
Typ: System.BooleanGibt an, ob der zurückgegebene Status Freigabeinformationen Informationen Benutzer ausgeschlossen werden, die Websitesammlungs-Administratoren der Websitesammlung, die die aktuelle Website enthält.
excludeSecurityGroups
Typ: System.BooleanGibt an, ob der zurückgegebene Status Freigabeinformationen Informationen zu Sicherheitsgruppen ausgeschlossen werden, die für die aktuelle Website Berechtigungen erteilt wurden.
retrieveAnonymousLinks
Typ: System.BooleanDieser Parameter wird von der Methode ignoriert.
retrieveUserInfoDetails
Typ: System.BooleanGibt an, ob der zurückgegebene Status Freigabeinformationen Basis- oder detaillierte Informationen über die Benutzer mit Berechtigungen für die aktuelle Site enthalten soll.
checkForAccessRequests
Typ: System.BooleanGibt an, ob die zurückgegebenen Freigabe von Informationen über den Zustand eine URL an einem Speicherort enthalten wird, alle Zugriffsanforderungen in der aktuellen Website vorhanden beschreibt, wenn eine derartige URL verfügbar ist.
Rückgabewert
Typ: Microsoft.SharePoint.SPObjectSharingInformation
Ein Objekt, das Informationen über die Freigabe des Zustands für die aktuelle Website enthält.
Siehe auch
Referenz
SPObjectSharingInformation Klasse