FeatureCollection.GetById method
Returns the feature for the given feature identifier.
Namespace: Microsoft.SharePoint.Client
Assembly: 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
)
Parameters
featureId
Type: System.GuidThe feature identifier of the feature to be returned.
Return value
Type: Microsoft.SharePoint.Client.Feature
Returns Feature.
Exceptions
Exception | Condition |
---|---|
[System.UnauthorizedAccessException] | The current user has insufficient permissions. Error code: -2147024891. |
Remarks
Returns a null reference (Nothing in Visual Basic) if no feature is available for the given feature identifier.