SPWeb.GetFileAsString 方法
Gets the contents of the file object located at the specified URL as a string.
命名空间: Microsoft.SharePoint
程序集: Microsoft.SharePoint(位于 Microsoft.SharePoint.dll 中)
语法
声明
Public Function GetFileAsString ( _
url As String _
) As String
用法
Dim instance As SPWeb
Dim url As String
Dim returnValue As String
returnValue = instance.GetFileAsString(url)
public string GetFileAsString(
string url
)
参数
url
类型:System.StringThe URL for the file.
返回值
类型:System.String
The contents of the file.
异常
异常 | 条件 |
---|---|
ArgumentNullException | url is null . |
备注
Use this method to get a string that contains the contents of the file object located at the specified URL.