RoleDefinitionCollection.GetByType 方法
傳回集合中的角色定義與指定的角色類型。
命名空間: 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 GetByType ( _
roleType As RoleType _
) As RoleDefinition
'用途
Dim instance As RoleDefinitionCollection
Dim roleType As RoleType
Dim returnValue As RoleDefinition
returnValue = instance.GetByType(roleType)
public RoleDefinition GetByType(
RoleType roleType
)
參數
- roleType
類型:Microsoft.SharePoint.Client.RoleType
傳回值
類型:Microsoft.SharePoint.Client.RoleDefinition
傳回指定的角色型別RoleDefinition執行個體。