共用方式為


Compilation.CreateFunctionPointerTypeSymbol 方法

定義

多載

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>)

來源:
Compilation.cs

傳回新的 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 編譯。

如果:

  • Out 傳遞為 returnRefKind。
  • parameterTypes 和 parameterRefKinds 的長度不相同。

如果 returnType 為 ,則為 null ,如果 parameterTypes 或 parameterRefKinds 為預設值,或如果 parameterTypes 中的任何類型為 Null,則為 。

適用於

CreateFunctionPointerTypeSymbol(ITypeSymbol, RefKind, ImmutableArray<ITypeSymbol>, ImmutableArray<RefKind>, SignatureCallingConvention, ImmutableArray<INamedTypeSymbol>)

來源:
Compilation.cs
來源:
Compilation.cs
來源:
Compilation.cs
來源:
Compilation.cs
來源:
Compilation.cs
來源:
Compilation.cs
來源:
Compilation.cs
來源:
Compilation.cs
來源:
Compilation.cs
來源:
Compilation.cs
來源:
Compilation.cs
來源:
Compilation.cs
來源:
Compilation.cs
來源:
Compilation.cs
來源:
Compilation.cs

傳回新的 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 編譯。

如果:

  • Out 傳遞為 returnRefKind。
  • parameterTypes 和 parameterRefKinds 的長度不相同。

如果 returnType 為 ,則為 null ,如果 parameterTypes 或 parameterRefKinds 為預設值,或如果 parameterTypes 中的任何類型為 Null,則為 。

適用於