Udostępnij za pośrednictwem


PackageUtilities.ContainsInvalidFileNameChars(String) Method

Definition

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

public:
 static bool ContainsInvalidFileNameChars(System::String ^ name);
public:
 static bool ContainsInvalidFileNameChars(Platform::String ^ name);
 static bool ContainsInvalidFileNameChars(std::wstring const & name);
public static bool ContainsInvalidFileNameChars (string name);
static member ContainsInvalidFileNameChars : string -> bool
Public Function ContainsInvalidFileNameChars (name As String) As Boolean

Parameters

name
String

File name

Returns

true if file name is invalid

Applies to