Bagikan melalui


IAuthenticationExtension.IsValidPrincipalName(String) Method

Definition

Indicates whether the specified principal name is valid.

public:
 bool IsValidPrincipalName(System::String ^ principalName);
public bool IsValidPrincipalName (string principalName);
abstract member IsValidPrincipalName : string -> bool
Public Function IsValidPrincipalName (principalName As String) As Boolean

Parameters

principalName
String

The user, group, or computer name.

Returns

Returns true if the supplied user name represents a valid principal name.

Remarks

The IsValidPrincipalName method is called by the report server when the report server sets security on an item. This method validates that the user name is valid for the current authority, for example, a Windows domain. The principal name needs to be a user, group, or computer account name. You may choose to provide an implementation of IsValidPrincipalName to provide additional validation checks on the principal identity.

Applies to