SPIisSettings.ValidateProviderName method
Validates the specified role manager or membership provider name.
Namespace: Microsoft.SharePoint.Administration
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'Declaration
Public Shared Sub ValidateProviderName ( _
name As String _
)
'Usage
Dim name As StringSPIisSettings.ValidateProviderName(name)
public static void ValidateProviderName(
string name
)
Parameters
name
Type: System.StringA string that specifies the role manager or membership provider name.
Remarks
The ValidateProviderName method throws an ArgumentException exception if the name is not valid. The string is invalid if it is null, longer than 50 characters, or contains a colon (":").