UserCustomActionCollection.GetById Method

Returns the custom action with the specified identifier.

Namespace:  Microsoft.SharePoint.Client
Assemblies:   Microsoft.SharePoint.Client.Silverlight (in Microsoft.SharePoint.Client.Silverlight.dll);  Microsoft.SharePoint.Client (in Microsoft.SharePoint.Client.dll)


<RemoteAttribute> _
Public Function GetById ( _
    userCustomActionId As Guid _
) As UserCustomAction
Dim instance As UserCustomActionCollection
Dim userCustomActionId As Guid
Dim returnValue As UserCustomAction

returnValue = instance.GetById(userCustomActionId)
public UserCustomAction GetById(
    Guid userCustomActionId


  • userCustomActionId
    Type: System.Guid

    Specifies the identifier of the custom action.

Return Value

Type: Microsoft.SharePoint.Client.UserCustomAction
Returns a UserCustomAction instance representing the custom action with the specified identifier.


Exception Condition

Collection has been modified on the server. Error code: -2146232832.


It must return NULL if no custom action corresponds to the specified identifier.

See Also


UserCustomActionCollection Class

UserCustomActionCollection Members

Microsoft.SharePoint.Client Namespace