IVsProjectSecrets.SanitizeName(String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
.