Freigeben über


FeatureCollection.GetById-Methode

Gibt das Feature für die gegebene Funktion-ID an.

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 ( _
    featureId As Guid _
) As Feature
'Usage
Dim instance As FeatureCollection
Dim featureId As Guid
Dim returnValue As Feature

returnValue = instance.GetById(featureId)
public Feature GetById(
    Guid featureId
)

Parameter

  • featureId
    Typ: System.Guid

    Das Featurebezeichner der Funktion zurückgegeben werden soll.

Rückgabewert

Typ: Microsoft.SharePoint.Client.Feature
Gibt Featurean.

Ausnahmen

Ausnahme Bedingung
[System.UnauthorizedAccessException]

Der aktuelle Benutzer verfügt nicht über ausreichende Berechtigungen. Fehlercode:-2147024891.

Hinweise

Gibt ein Nullverweis (Nothing in Visual Basic) an, wenn keine Funktion für die gegebene Funktion Bezeichner verfügbar ist.

Siehe auch

Referenz

FeatureCollection Klasse

FeatureCollection-Member

Microsoft.SharePoint.Client-Namespace