UserCustomActionCollection.GetById method

Returns the custom action with the specified identifier.

Namespace:  Microsoft.SharePoint.Client
Assembly:  Microsoft.SharePoint.Client (in Microsoft.SharePoint.Client.dll)

Syntax

'Declaration
Public Function GetById ( _
    id As Guid _
) As UserCustomAction
'Usage
Dim instance As UserCustomActionCollection
Dim id As Guid
Dim returnValue As UserCustomAction

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

Parameters

  • id
    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.

Exceptions

Exception Condition
[Microsoft.SharePoint.SPException]

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

Remarks

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

See also

Reference

UserCustomActionCollection class

UserCustomActionCollection members

Microsoft.SharePoint.Client namespace