XmlReflectionImporter.IncludeType(Type) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
包含類型映射,供日後匯入方法使用。
此 API 支援此產品基礎結構,但無法直接用於程式碼之中。
public:
void IncludeType(Type ^ type);
[System.Diagnostics.CodeAnalysis.RequiresDynamicCode("XML serializer relies on dynamic code generation which is not available with Ahead of Time compilation")]
[System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("Members from serialized types may be trimmed if not referenced directly")]
public void IncludeType(Type type);
public void IncludeType(Type type);
[System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("Members from serialized types may be trimmed if not referenced directly")]
public void IncludeType(Type type);
[<System.Diagnostics.CodeAnalysis.RequiresDynamicCode("XML serializer relies on dynamic code generation which is not available with Ahead of Time compilation")>]
[<System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("Members from serialized types may be trimmed if not referenced directly")>]
member this.IncludeType : Type -> unit
member this.IncludeType : Type -> unit
[<System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("Members from serialized types may be trimmed if not referenced directly")>]
member this.IncludeType : Type -> unit
Public Sub IncludeType (type As Type)
參數
- type
- Type
儲存的 .NET 類型,類型映射資訊。
- 屬性
備註
不必直接呼叫該 IncludeType 方法。