Partilhar via


MiningModelPermissionCollection.GetByRole(String) Method

Definition

Gets the MiningModelPermission that has the specified RoleID from the collection.

public Microsoft.AnalysisServices.MiningModelPermission GetByRole (string roleId);
member this.GetByRole : string -> Microsoft.AnalysisServices.MiningModelPermission
Public Function GetByRole (roleId As String) As MiningModelPermission

Parameters

roleId
String

The RoleID of the MiningModelPermission to locate.

Returns

The MiningModelPermission with the specified RoleID.

Exceptions

The collection doesn't contain a MiningModelPermission with the specified RoleID.

Applies to