SyntaxGenerator.AsPrivateInterfaceImplementation 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
AsPrivateInterfaceImplementation(SyntaxNode, SyntaxNode) |
將方法、屬性和索引子宣告轉換成私用介面實作。 這相當於 C# 明確介面實作, (您可以宣告它以透過 介面存取,但無法直接呼叫它) 。 |
AsPrivateInterfaceImplementation(SyntaxNode, SyntaxNode, String) |
將方法、屬性和索引子宣告轉換成私用介面實作。 這相當於 C# 明確介面實作, (您可以宣告它以透過 介面存取,但無法直接呼叫它) 。 |
AsPrivateInterfaceImplementation(SyntaxNode, SyntaxNode)
將方法、屬性和索引子宣告轉換成私用介面實作。 這相當於 C# 明確介面實作, (您可以宣告它以透過 介面存取,但無法直接呼叫它) 。
public:
Microsoft::CodeAnalysis::SyntaxNode ^ AsPrivateInterfaceImplementation(Microsoft::CodeAnalysis::SyntaxNode ^ declaration, Microsoft::CodeAnalysis::SyntaxNode ^ interfaceType);
public Microsoft.CodeAnalysis.SyntaxNode AsPrivateInterfaceImplementation (Microsoft.CodeAnalysis.SyntaxNode declaration, Microsoft.CodeAnalysis.SyntaxNode interfaceType);
public Microsoft.CodeAnalysis.SyntaxNode? AsPrivateInterfaceImplementation (Microsoft.CodeAnalysis.SyntaxNode declaration, Microsoft.CodeAnalysis.SyntaxNode interfaceType);
member this.AsPrivateInterfaceImplementation : Microsoft.CodeAnalysis.SyntaxNode * Microsoft.CodeAnalysis.SyntaxNode -> Microsoft.CodeAnalysis.SyntaxNode
Public Function AsPrivateInterfaceImplementation (declaration As SyntaxNode, interfaceType As SyntaxNode) As SyntaxNode
參數
- declaration
- SyntaxNode
- interfaceType
- SyntaxNode
傳回
適用於
AsPrivateInterfaceImplementation(SyntaxNode, SyntaxNode, String)
將方法、屬性和索引子宣告轉換成私用介面實作。 這相當於 C# 明確介面實作, (您可以宣告它以透過 介面存取,但無法直接呼叫它) 。
public:
abstract Microsoft::CodeAnalysis::SyntaxNode ^ AsPrivateInterfaceImplementation(Microsoft::CodeAnalysis::SyntaxNode ^ declaration, Microsoft::CodeAnalysis::SyntaxNode ^ interfaceType, System::String ^ interfaceMemberName);
public abstract Microsoft.CodeAnalysis.SyntaxNode AsPrivateInterfaceImplementation (Microsoft.CodeAnalysis.SyntaxNode declaration, Microsoft.CodeAnalysis.SyntaxNode interfaceType, string interfaceMemberName);
public abstract Microsoft.CodeAnalysis.SyntaxNode? AsPrivateInterfaceImplementation (Microsoft.CodeAnalysis.SyntaxNode declaration, Microsoft.CodeAnalysis.SyntaxNode interfaceType, string? interfaceMemberName);
abstract member AsPrivateInterfaceImplementation : Microsoft.CodeAnalysis.SyntaxNode * Microsoft.CodeAnalysis.SyntaxNode * string -> Microsoft.CodeAnalysis.SyntaxNode
Public MustOverride Function AsPrivateInterfaceImplementation (declaration As SyntaxNode, interfaceType As SyntaxNode, interfaceMemberName As String) As SyntaxNode
參數
- declaration
- SyntaxNode
- interfaceType
- SyntaxNode
- interfaceMemberName
- String