AttachmentCollection.GetByFileName 方法
取得所指定的檔案名稱表示附件。
命名空間: Microsoft.SharePoint.Client
組件: Microsoft.SharePoint.Client.Silverlight (在 Microsoft.SharePoint.Client.Silverlight.dll 中); Microsoft.SharePoint.Client.Phone (在 Microsoft.SharePoint.Client.Phone.dll 中) Microsoft.SharePoint.Client (在 Microsoft.SharePoint.Client.dll 中)
語法
'宣告
Public Function GetByFileName ( _
fileName As String _
) As Attachment
'用途
Dim instance As AttachmentCollection
Dim fileName As String
Dim returnValue As Attachment
returnValue = instance.GetByFileName(fileName)
public Attachment GetByFileName(
string fileName
)
參數
fileName
類型:System.String代表要擷取的附件的檔案名稱。
傳回值
類型:Microsoft.SharePoint.Client.Attachment
附件。