FeatureCollection.GetById Method
Returns the feature for the given feature identifier.
Namespace: Microsoft.SharePoint.Client
Assemblies: Microsoft.SharePoint.Client.Silverlight (in Microsoft.SharePoint.Client.Silverlight.dll); Microsoft.SharePoint.Client (in Microsoft.SharePoint.Client.dll)
Syntax
'Declaration
<RemoteAttribute> _
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)
[RemoteAttribute]
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.