CloudFileDirectory.GetFileReference Method

Windows Runtime Azure Storage Client Library

Returns a CloudFile object that represents a file in this directory.

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

Usage

Visual Basic
Dim instance As CloudFileDirectory
Dim fileName As String
Dim returnValue As CloudFile

returnValue = instance.GetFileReference(fileName)

Syntax

Visual Basic
Public Function GetFileReference ( _
	fileName As String _
) As CloudFile
C#
public CloudFile GetFileReference (
	string fileName
)
C++
public:
CloudFile^ GetFileReference (
	String^ fileName
)
J#
public CloudFile GetFileReference (
	String fileName
)
JScript
public function GetFileReference (
	fileName : String
) : CloudFile

Parameters

fileName

A String containing the name of the file.

Return Value

A CloudFile object.

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