Freigeben über


PackageUtilities.ContainsInvalidFileNameChars Method

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

Namespace:  Microsoft.VisualStudio.Shell
Assembly:  Microsoft.VisualStudio.Shell.12.0 (in Microsoft.VisualStudio.Shell.12.0.dll)

Syntax

'Declaration
Public Shared Function ContainsInvalidFileNameChars ( _
    name As String _
) As Boolean
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

  • name
    Type: String

    The file name or path.

Return Value

Type: 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

Microsoft.VisualStudio.Shell Namespace