PackageUtilities.ContainsInvalidFileNameChars Method

Determines whether or not a string contains characters that are invalid for file names or paths.

Namespace:  Microsoft.VisualStudio.Shell
Assemblies:   Microsoft.VisualStudio.Shell.9.0 (in Microsoft.VisualStudio.Shell.9.0.dll)
  Microsoft.VisualStudio.Shell (in Microsoft.VisualStudio.Shell.dll)
  Microsoft.VisualStudio.Shell.10.0 (in Microsoft.VisualStudio.Shell.10.0.dll)

Syntax

声明
Public Shared Function ContainsInvalidFileNameChars ( _
    name As String _
) As Boolean
用法
Dim name As String
Dim returnValue As Boolean

returnValue = PackageUtilities.ContainsInvalidFileNameChars(name)
public static bool ContainsInvalidFileNameChars(
    string name
)
public:
static bool ContainsInvalidFileNameChars(
    String^ name
)
static member ContainsInvalidFileNameChars : 
        name:string -> bool 
public static function ContainsInvalidFileNameChars(
    name : String
) : boolean

Parameters

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

See Also

Reference

PackageUtilities Class

PackageUtilities Members

Microsoft.VisualStudio.Shell Namespace