GroupCollection.GetById-Methode
Gibt eine Gruppe aus der Auflistung auf der Grundlage der Mitglieds-ID der Gruppe zurück.
Namespace: Microsoft.SharePoint.Client
Assemblys: Microsoft.SharePoint.Client.Silverlight (in Microsoft.SharePoint.Client.Silverlight.dll); Microsoft.SharePoint.Client.Phone (in Microsoft.SharePoint.Client.Phone.dll) Microsoft.SharePoint.Client (in Microsoft.SharePoint.Client.dll)
Syntax
'Declaration
Public Function GetById ( _
id As Integer _
) As Group
'Usage
Dim instance As GroupCollection
Dim id As Integer
Dim returnValue As Group
returnValue = instance.GetById(id)
public Group GetById(
int id
)
Parameter
id
Typ: System.Int32Eine 32-Bit ganze Zahl, die angibt, die Mitglied-ID.
Rückgabewert
Typ: Microsoft.SharePoint.Client.Group
Ein Group -Objekt, das die Gruppe darstellt.
Ausnahmen
Ausnahme | Bedingung |
---|---|
SPException | Die Gruppe kann nicht gefunden werden. Fehlercode:-2130575246. |
ArgumentException | Eine Gruppe unbekannt oder falsch ist Auflistung zu Initialisierung werden. Fehlercode:-2147024809. |
UnauthorizedAccessException | Der aktuelle Benutzer verfügt nicht über ausreichende Berechtigungen. Fehlercode:-2147024891. |