SPFileCollection.Add method (String, Stream, Hashtable)
使用指定的 URL 包含的檔案,內容的資料流,包含檔案的中繼資料的雜湊表集合中建立的檔案。
Namespace: Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'宣告
Public Function Add ( _
urlOfFile As String, _
file As Stream, _
properties As Hashtable _
) As SPFile
'用途
Dim instance As SPFileCollection
Dim urlOfFile As String
Dim file As Stream
Dim properties As Hashtable
Dim returnValue As SPFile
returnValue = instance.Add(urlOfFile, _
file, properties)
public SPFile Add(
string urlOfFile,
Stream file,
Hashtable properties
)
參數
urlOfFile
Type: System.String檔案的站台相對 URL。
file
Type: System.IO.Stream包含檔案的資料流。
properties
Type: System.Collections.Hashtable包含檔案的中繼資料的雜湊資料表。
傳回值
Type: Microsoft.SharePoint.SPFile
新加入的檔案。