SPMobileDocumentViewer constructor
Initializes a new instance of the SPMobileDocumentViewer class.
Namespace: Microsoft.SharePoint.Administration
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'Declaration
Public Sub New ( _
fileExtension As String, _
filePath As String, _
featureId As String, _
queryid As String, _
appendsourceurl As String _
)
'Usage
Dim fileExtension As String
Dim filePath As String
Dim featureId As String
Dim queryid As String
Dim appendsourceurl As String
Dim instance As New SPMobileDocumentViewer(fileExtension, _
filePath, featureId, queryid, appendsourceurl)
public SPMobileDocumentViewer(
string fileExtension,
string filePath,
string featureId,
string queryid,
string appendsourceurl
)
Parameters
fileExtension
Type: System.StringThe extension of the types of files that the viewer can open.
filePath
Type: System.StringThe path to the mobile page that hosts the viewer.
featureId
Type: System.StringThe GUID of the SharePoint Foundation Feature that enables the viewer.
queryid
Type: System.StringThe key value of the query string appended to the URL of the page that hosts the viewer.
appendsourceurl
Type: System.StringThe string “true” to indicate that the URL of the document that is to be viewed should be appended as the value of the query string. The string “false” to indicate that it should not be appended.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | Either fileExtension or filePath are a null reference (Nothing in Visual Basic). |
Remarks
featureId is an empty string or a null reference (Nothing in Visual Basic), if the viewer is not housed in a Feature. For more information about Features, in the sense that is used in this topic, start with Building Block: Features.