IDocumentTypeFeature<TDocumentType>.GetDocumentType(String) 方法

定义

获取给定内容类型的文档类型。

public TDocumentType? GetDocumentType (string contentPart);
abstract member GetDocumentType : string -> Nullable<'DocumentType (requires 'DocumentType : struct)>
Public Function GetDocumentType (contentPart As String) As Nullable(Of TDocumentType)

参数

contentPart
String

内容类型。

返回

Nullable<TDocumentType>

文档类型(如果已知),否则为 null

适用于