Returns the custom action with the specified identifier.
命名空间: Microsoft.SharePoint.Client
程序集: Microsoft.SharePoint.Client.Silverlight(位于 Microsoft.SharePoint.Client.Silverlight.dll 中); Microsoft.SharePoint.Client.Phone(位于 Microsoft.SharePoint.Client.Phone.dll 中) Microsoft.SharePoint.Client(位于 Microsoft.SharePoint.Client.dll 中)
语法
声明
Public Function GetById ( _
id As Guid _
) As UserCustomAction
用法
Dim instance As UserCustomActionCollection
Dim id As Guid
Dim returnValue As UserCustomAction
returnValue = instance.GetById(id)
public UserCustomAction GetById(
Guid id
)
参数
id
类型:System.GuidSpecifies the identifier of the custom action.
返回值
类型:Microsoft.SharePoint.Client.UserCustomAction
Returns a UserCustomAction instance representing the custom action with the specified identifier.
异常
| 异常 | 条件 |
|---|---|
| [Microsoft.SharePoint.SPException] | Collection has been modified on the server. Error code: -2146232832. |
备注
It must return NULL if no custom action corresponds to the specified identifier.