GetFileAsString Method
SPWeb.GetFileAsString Method (Microsoft.SharePoint)
Returns the contents of the file object located at the specified URL as a string.

Namespace: Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in microsoft.sharepoint.dll)
Visual Basic (Declaration)
Public Function GetFileAsString ( _
    url As String _
) As String
Visual Basic (Usage)
Dim instance As SPWeb
Dim url As String
Dim returnValue As String

returnValue = instance.GetFileAsString(url)
C#
public string GetFileAsString (
    string url
)

Parameters

url

A string that specifies the URL for the file.

Return Value

A string that contains the contents of the file.
Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
Page view tracker