Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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)
Syntax
'Declaration
<RemoteAttribute> _
Public Function GetById ( _
userCustomActionId As Guid _
) As UserCustomAction
'Usage
Dim instance As UserCustomActionCollection
Dim userCustomActionId As Guid
Dim returnValue As UserCustomAction
returnValue = instance.GetById(userCustomActionId)
[RemoteAttribute]
public UserCustomAction GetById(
Guid userCustomActionId
)
Parameters
userCustomActionId
Type: System.GuidSpecifies 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