Share via


IVsProjectSecrets.SanitizeName(String) Method

Definition

Replaces any disallowed characters from the proposed secret name with an allowed substitution character. For example, if : is not an allowed secret name character, this method might replace use of that character with an underscore (‘_’).

public:
 System::String ^ SanitizeName(System::String ^ name);
public string SanitizeName (string name);
abstract member SanitizeName : string -> string
Public Function SanitizeName (name As String) As String

Parameters

name
String

The candidate name for the secret. Must not be null, but may be empty.

Returns

The sanitized name to use for the secret.

Exceptions

Thrown if name is null.

Applies to