SPMobileDocumentViewer constructor
初始化SPMobileDocumentViewer類別的新執行個體。
Namespace: Microsoft.SharePoint.Administration
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'宣告
Public Sub New ( _
fileExtension As String, _
filePath As String, _
featureId As String, _
queryid As String, _
appendsourceurl As String _
)
'用途
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
)
參數
fileExtension
Type: System.String以檢視者可以開啟的檔案類型的副檔名。
filePath
Type: System.String主控以檢視者的行動裝置] 頁面上的路徑。
featureId
Type: System.StringSharePoint Foundation功能,可讓檢視器的 GUID。
queryid
Type: System.String附加至主控檢視器] 頁面的 URL 的查詢字串機碼值。
appendsourceurl
Type: System.String字串"true"表示的文件的 URL,以檢視應該要附加的查詢字串值。字串"false"表示其應該不會將附加。
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | fileExtension或filePath是a null reference (Nothing in Visual Basic)。 |
備註
featureId是空字串或a null reference (Nothing in Visual Basic),如果以檢視者不存放功能。如需詳細資訊的相關功能,在本主題中所用的有意義的開頭Building Block: Features。