SPDocumentConverterCollection class
代表可用的 Web 應用程式的SPDocumentConverter物件的集合。
Inheritance hierarchy
System.Object
Microsoft.SharePoint.Administration.SPPersistedObjectCollection<SPDocumentConverter>
Microsoft.SharePoint.Administration.SPPersistedChildCollection<SPDocumentConverter>
Microsoft.SharePoint.Administration.SPDocumentConverterCollection
Namespace: Microsoft.SharePoint.Administration
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'宣告
<SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel := True)> _
Public NotInheritable Class SPDocumentConverterCollection _
Inherits SPPersistedChildCollection(Of SPDocumentConverter)
'用途
Dim instance As SPDocumentConverterCollection
[SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel = true)]
public sealed class SPDocumentConverterCollection : SPPersistedChildCollection<SPDocumentConverter>
備註
使用SPWebApplication類別之DocumentConverters屬性可傳回 Web 應用程式內的文件轉換程式的集合。若要新增至集合中的文件轉換程式,使用SPPersistedChildCollection<T>類別之Add方法。
若要從集合中傳回單一文件轉換程式中使用索引器。例如,若集合已指派給變數 myDocumentConverters,使用myDocumentConverters[index]以 C# 或 Visual Basic,其中index是名稱或 GUID 識別文件轉換程式中的myDocumentConverters(index) 。
Thread safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.