Compilation.CreateFunctionPointerTypeSymbol 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
CreateFunctionPointerTypeSymbol(ITypeSymbol, RefKind, ImmutableArray<ITypeSymbol>, ImmutableArray<RefKind>) |
傳回新的 IFunctionPointerTypeSymbol,代表系結至此編譯中類型的函式指標類型。 |
CreateFunctionPointerTypeSymbol(ITypeSymbol, RefKind, ImmutableArray<ITypeSymbol>, ImmutableArray<RefKind>, SignatureCallingConvention, ImmutableArray<INamedTypeSymbol>) |
傳回新的 IFunctionPointerTypeSymbol,代表系結至此編譯中類型的函式指標類型。 |
CreateFunctionPointerTypeSymbol(ITypeSymbol, RefKind, ImmutableArray<ITypeSymbol>, ImmutableArray<RefKind>)
傳回新的 IFunctionPointerTypeSymbol,代表系結至此編譯中類型的函式指標類型。
public Microsoft.CodeAnalysis.IFunctionPointerTypeSymbol CreateFunctionPointerTypeSymbol (Microsoft.CodeAnalysis.ITypeSymbol returnType, Microsoft.CodeAnalysis.RefKind returnRefKind, System.Collections.Immutable.ImmutableArray<Microsoft.CodeAnalysis.ITypeSymbol> parameterTypes, System.Collections.Immutable.ImmutableArray<Microsoft.CodeAnalysis.RefKind> parameterRefKinds);
member this.CreateFunctionPointerTypeSymbol : Microsoft.CodeAnalysis.ITypeSymbol * Microsoft.CodeAnalysis.RefKind * System.Collections.Immutable.ImmutableArray<Microsoft.CodeAnalysis.ITypeSymbol> * System.Collections.Immutable.ImmutableArray<Microsoft.CodeAnalysis.RefKind> -> Microsoft.CodeAnalysis.IFunctionPointerTypeSymbol
Public Function CreateFunctionPointerTypeSymbol (returnType As ITypeSymbol, returnRefKind As RefKind, parameterTypes As ImmutableArray(Of ITypeSymbol), parameterRefKinds As ImmutableArray(Of RefKind)) As IFunctionPointerTypeSymbol
參數
- returnType
- ITypeSymbol
- returnRefKind
- RefKind
- parameterTypes
- ImmutableArray<ITypeSymbol>
- parameterRefKinds
- ImmutableArray<RefKind>
傳回
例外狀況
如果編譯是 VisualBasic 編譯。
如果 returnType 為 ,則為 null
,如果 parameterTypes 或 parameterRefKinds 為預設值,或如果 parameterTypes 中的任何類型為 Null,則為 。
適用於
CreateFunctionPointerTypeSymbol(ITypeSymbol, RefKind, ImmutableArray<ITypeSymbol>, ImmutableArray<RefKind>, SignatureCallingConvention, ImmutableArray<INamedTypeSymbol>)
傳回新的 IFunctionPointerTypeSymbol,代表系結至此編譯中類型的函式指標類型。
public Microsoft.CodeAnalysis.IFunctionPointerTypeSymbol CreateFunctionPointerTypeSymbol (Microsoft.CodeAnalysis.ITypeSymbol returnType, Microsoft.CodeAnalysis.RefKind returnRefKind, System.Collections.Immutable.ImmutableArray<Microsoft.CodeAnalysis.ITypeSymbol> parameterTypes, System.Collections.Immutable.ImmutableArray<Microsoft.CodeAnalysis.RefKind> parameterRefKinds, System.Reflection.Metadata.SignatureCallingConvention callingConvention = System.Reflection.Metadata.SignatureCallingConvention.Default, System.Collections.Immutable.ImmutableArray<Microsoft.CodeAnalysis.INamedTypeSymbol> callingConventionTypes = default);
member this.CreateFunctionPointerTypeSymbol : Microsoft.CodeAnalysis.ITypeSymbol * Microsoft.CodeAnalysis.RefKind * System.Collections.Immutable.ImmutableArray<Microsoft.CodeAnalysis.ITypeSymbol> * System.Collections.Immutable.ImmutableArray<Microsoft.CodeAnalysis.RefKind> * System.Reflection.Metadata.SignatureCallingConvention * System.Collections.Immutable.ImmutableArray<Microsoft.CodeAnalysis.INamedTypeSymbol> -> Microsoft.CodeAnalysis.IFunctionPointerTypeSymbol
Public Function CreateFunctionPointerTypeSymbol (returnType As ITypeSymbol, returnRefKind As RefKind, parameterTypes As ImmutableArray(Of ITypeSymbol), parameterRefKinds As ImmutableArray(Of RefKind), Optional callingConvention As SignatureCallingConvention = System.Reflection.Metadata.SignatureCallingConvention.Default, Optional callingConventionTypes As ImmutableArray(Of INamedTypeSymbol) = Nothing) As IFunctionPointerTypeSymbol
參數
- returnType
- ITypeSymbol
- returnRefKind
- RefKind
- parameterTypes
- ImmutableArray<ITypeSymbol>
- parameterRefKinds
- ImmutableArray<RefKind>
- callingConvention
- SignatureCallingConvention
- callingConventionTypes
- ImmutableArray<INamedTypeSymbol>
傳回
例外狀況
如果編譯是 VisualBasic 編譯。
如果 returnType 為 ,則為 null
,如果 parameterTypes 或 parameterRefKinds 為預設值,或如果 parameterTypes 中的任何類型為 Null,則為 。