SPContentType.NewDocumentControl property
取得或設定字串,可識別用來建立新文件的應用程式。
Namespace: Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'宣告
Public Property NewDocumentControl As String
Get
Set
'用途
Dim instance As SPContentType
Dim value As String
value = instance.NewDocumentControl
instance.NewDocumentControl = value
public string NewDocumentControl { get; set; }
Property value
Type: System.String
應用程式的程式設計識別項。預設值是String.Empty。
備註
這個屬性可以用來識別一個 ActiveX 控制項,作為建立表單範本為基礎的文件。例如,下列程式碼識別的範本和應用程式使用特定的內容類型,在程式碼中,由本機變數contentType。
contentType.DocumentTemplate = "ContentType/Forms/template.xsn";
contentType.NewDocumentControl = "Sharepoint.OpenXMLDocuments";
contentType.RequireClientRenderingOnNew = false;
contentType.DocumentTemplate = "ContentType/Forms/template.xsn"
contentType.NewDocumentControl = "Sharepoint.OpenXMLDocuments"
contentType.RequireClientRenderingOnNew = False
請參閱
參照
Microsoft.SharePoint namespace