Export (0) Print
Expand All

SPWeb.GetFile method (Guid)

Gets the file object with the specified identifier (ID).

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

public SPFile GetFile(
	Guid uniqueId
)

Parameters

uniqueId
Type: System.Guid

The ID of the file object.

Return value

Type: Microsoft.SharePoint.SPFile
The file object.

This method calls the SPFile constructor with this and uniqueId.

Show:
© 2014 Microsoft