SPWeb.GetFile 方法 (Guid)

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

命名空间:  Microsoft.SharePoint
程序集:  Microsoft.SharePoint(位于 Microsoft.SharePoint.dll 中)

语法

声明
Public Function GetFile ( _
    uniqueId As Guid _
) As SPFile
用法
Dim instance As SPWeb
Dim uniqueId As Guid
Dim returnValue As SPFile

returnValue = instance.GetFile(uniqueId)
public SPFile GetFile(
    Guid uniqueId
)

参数

  • uniqueId
    类型:System.Guid

    The ID of the file object.

返回值

类型:Microsoft.SharePoint.SPFile
The file object.

备注

This method calls the SPFile constructor with this and uniqueId.

另请参阅

引用

SPWeb 类

SPWeb 成员

GetFile 重载

Microsoft.SharePoint 命名空间