PackageUtilities.ContainsInvalidFileNameChars Method
Determines whether or not a string contains characters that are invalid for file names or paths.
Namespace: Microsoft.VisualStudio.Shell
Assembly: Microsoft.VisualStudio.Shell.11.0 (in Microsoft.VisualStudio.Shell.11.0.dll)
Syntax
'宣告
Public Shared Function ContainsInvalidFileNameChars ( _
name As String _
) As Boolean
public static bool ContainsInvalidFileNameChars(
string name
)
Parameters
- name
Type: System.String
The file name or path.
Return Value
Type: System.Boolean
true if the string contains invalid characters, false if the string is a valid file name or path.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.