NameValidator.ValidateFileName Method

Windows Runtime Azure Storage Client Library

Checks if a file name is valid.

Namespace: Microsoft.WindowsAzure.Storage
Assembly: Microsoft.WindowsAzure.Storage (in Microsoft.WindowsAzure.Storage.dll)

Usage

Visual Basic
Dim fileName As String

NameValidator.ValidateFileName(fileName)

Syntax

Visual Basic
Public Shared Sub ValidateFileName ( _
	fileName As String _
)
C#
public static void ValidateFileName (
	string fileName
)
C++
public:
static void ValidateFileName (
	String^ fileName
)
J#
public static void ValidateFileName (
	String fileName
)
JScript
public static function ValidateFileName (
	fileName : String
)

Parameters

fileName

A string representing the file name to validate.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

Windows Vista, Windows 7, Windows Server 2008, Windows 8.1, Windows Server 2012 R2, Windows 8 and Windows Server 2012

Target Platforms

See Also