共用方式為


VisualBasicExtensions.TryGetSpeculativeSemanticModel 方法

定義

多載

TryGetSpeculativeSemanticModel(SemanticModel, Int32, RangeArgumentSyntax, SemanticModel)

取得位於指定位置之 RangeArgumentSyntax 的 SemanticModel,用於未出現在原始程式碼中的專案的語意資訊中。

TryGetSpeculativeSemanticModel(SemanticModel, Int32, ExecutableStatementSyntax, SemanticModel)

取得在指定位置的 ExecutableStatementSyntax SemanticModel,用於未出現在原始程式碼中的專案語意資訊中。

TryGetSpeculativeSemanticModel(SemanticModel, Int32, TypeSyntax, SemanticModel, SpeculativeBindingOption)

取得位於指定位置之 TypeSyntax 的 SemanticModel,用於未出現在原始程式碼中的專案的語意資訊中。

TryGetSpeculativeSemanticModel(SemanticModel, Int32, AttributeSyntax, SemanticModel)

取得位於指定位置之 AttributeSyntax 的 SemanticModel,用於未出現在原始程式碼中的專案語意資訊中。

TryGetSpeculativeSemanticModel(SemanticModel, Int32, EqualsValueSyntax, SemanticModel)

取得位於指定位置之 EqualsValueSyntax 的 SemanticModel,用於未出現在原始程式碼中的專案語意資訊中。

TryGetSpeculativeSemanticModel(SemanticModel, Int32, RangeArgumentSyntax, SemanticModel)

Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb

取得位於指定位置之 RangeArgumentSyntax 的 SemanticModel,用於未出現在原始程式碼中的專案的語意資訊中。

public:
[System::Runtime::CompilerServices::Extension]
 static bool TryGetSpeculativeSemanticModel(Microsoft::CodeAnalysis::SemanticModel ^ semanticModel, int position, Microsoft::CodeAnalysis::VisualBasic::Syntax::RangeArgumentSyntax ^ rangeArgument, [Runtime::InteropServices::Out] Microsoft::CodeAnalysis::SemanticModel ^ % speculativeModel);
public static bool TryGetSpeculativeSemanticModel (this Microsoft.CodeAnalysis.SemanticModel semanticModel, int position, Microsoft.CodeAnalysis.VisualBasic.Syntax.RangeArgumentSyntax rangeArgument, out Microsoft.CodeAnalysis.SemanticModel speculativeModel);
static member TryGetSpeculativeSemanticModel : Microsoft.CodeAnalysis.SemanticModel * int * Microsoft.CodeAnalysis.VisualBasic.Syntax.RangeArgumentSyntax * SemanticModel -> bool
<Extension()>
Public Function TryGetSpeculativeSemanticModel (semanticModel As SemanticModel, position As Integer, rangeArgument As RangeArgumentSyntax, ByRef speculativeModel As SemanticModel) As Boolean

參數

semanticModel
SemanticModel
position
Int32
rangeArgument
RangeArgumentSyntax
speculativeModel
SemanticModel

傳回

適用於

TryGetSpeculativeSemanticModel(SemanticModel, Int32, ExecutableStatementSyntax, SemanticModel)

Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb

取得在指定位置的 ExecutableStatementSyntax SemanticModel,用於未出現在原始程式碼中的專案語意資訊中。

public:
[System::Runtime::CompilerServices::Extension]
 static bool TryGetSpeculativeSemanticModel(Microsoft::CodeAnalysis::SemanticModel ^ semanticModel, int position, Microsoft::CodeAnalysis::VisualBasic::Syntax::ExecutableStatementSyntax ^ statement, [Runtime::InteropServices::Out] Microsoft::CodeAnalysis::SemanticModel ^ % speculativeModel);
public static bool TryGetSpeculativeSemanticModel (this Microsoft.CodeAnalysis.SemanticModel semanticModel, int position, Microsoft.CodeAnalysis.VisualBasic.Syntax.ExecutableStatementSyntax statement, out Microsoft.CodeAnalysis.SemanticModel speculativeModel);
static member TryGetSpeculativeSemanticModel : Microsoft.CodeAnalysis.SemanticModel * int * Microsoft.CodeAnalysis.VisualBasic.Syntax.ExecutableStatementSyntax * SemanticModel -> bool
<Extension()>
Public Function TryGetSpeculativeSemanticModel (semanticModel As SemanticModel, position As Integer, statement As ExecutableStatementSyntax, ByRef speculativeModel As SemanticModel) As Boolean

參數

semanticModel
SemanticModel
position
Int32
speculativeModel
SemanticModel

傳回

適用於

TryGetSpeculativeSemanticModel(SemanticModel, Int32, TypeSyntax, SemanticModel, SpeculativeBindingOption)

Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb

取得位於指定位置之 TypeSyntax 的 SemanticModel,用於未出現在原始程式碼中的專案的語意資訊中。

public static bool TryGetSpeculativeSemanticModel (this Microsoft.CodeAnalysis.SemanticModel semanticModel, int position, Microsoft.CodeAnalysis.VisualBasic.Syntax.TypeSyntax type, out Microsoft.CodeAnalysis.SemanticModel speculativeModel, Microsoft.CodeAnalysis.SpeculativeBindingOption bindingOption = Microsoft.CodeAnalysis.SpeculativeBindingOption.BindAsExpression);
static member TryGetSpeculativeSemanticModel : Microsoft.CodeAnalysis.SemanticModel * int * Microsoft.CodeAnalysis.VisualBasic.Syntax.TypeSyntax * SemanticModel * Microsoft.CodeAnalysis.SpeculativeBindingOption -> bool
<Extension()>
Public Function TryGetSpeculativeSemanticModel (semanticModel As SemanticModel, position As Integer, type As TypeSyntax, ByRef speculativeModel As SemanticModel, Optional bindingOption As SpeculativeBindingOption = Microsoft.CodeAnalysis.SpeculativeBindingOption.BindAsExpression) As Boolean

參數

semanticModel
SemanticModel
position
Int32
type
TypeSyntax
speculativeModel
SemanticModel
bindingOption
SpeculativeBindingOption

傳回

適用於

TryGetSpeculativeSemanticModel(SemanticModel, Int32, AttributeSyntax, SemanticModel)

Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb

取得位於指定位置之 AttributeSyntax 的 SemanticModel,用於未出現在原始程式碼中的專案語意資訊中。

public:
[System::Runtime::CompilerServices::Extension]
 static bool TryGetSpeculativeSemanticModel(Microsoft::CodeAnalysis::SemanticModel ^ semanticModel, int position, Microsoft::CodeAnalysis::VisualBasic::Syntax::AttributeSyntax ^ attribute, [Runtime::InteropServices::Out] Microsoft::CodeAnalysis::SemanticModel ^ % speculativeModel);
public static bool TryGetSpeculativeSemanticModel (this Microsoft.CodeAnalysis.SemanticModel semanticModel, int position, Microsoft.CodeAnalysis.VisualBasic.Syntax.AttributeSyntax attribute, out Microsoft.CodeAnalysis.SemanticModel speculativeModel);
static member TryGetSpeculativeSemanticModel : Microsoft.CodeAnalysis.SemanticModel * int * Microsoft.CodeAnalysis.VisualBasic.Syntax.AttributeSyntax * SemanticModel -> bool
<Extension()>
Public Function TryGetSpeculativeSemanticModel (semanticModel As SemanticModel, position As Integer, attribute As AttributeSyntax, ByRef speculativeModel As SemanticModel) As Boolean

參數

semanticModel
SemanticModel
position
Int32
attribute
AttributeSyntax
speculativeModel
SemanticModel

傳回

適用於

TryGetSpeculativeSemanticModel(SemanticModel, Int32, EqualsValueSyntax, SemanticModel)

Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb

取得位於指定位置之 EqualsValueSyntax 的 SemanticModel,用於未出現在原始程式碼中的專案語意資訊中。

public:
[System::Runtime::CompilerServices::Extension]
 static bool TryGetSpeculativeSemanticModel(Microsoft::CodeAnalysis::SemanticModel ^ semanticModel, int position, Microsoft::CodeAnalysis::VisualBasic::Syntax::EqualsValueSyntax ^ initializer, [Runtime::InteropServices::Out] Microsoft::CodeAnalysis::SemanticModel ^ % speculativeModel);
public static bool TryGetSpeculativeSemanticModel (this Microsoft.CodeAnalysis.SemanticModel semanticModel, int position, Microsoft.CodeAnalysis.VisualBasic.Syntax.EqualsValueSyntax initializer, out Microsoft.CodeAnalysis.SemanticModel speculativeModel);
static member TryGetSpeculativeSemanticModel : Microsoft.CodeAnalysis.SemanticModel * int * Microsoft.CodeAnalysis.VisualBasic.Syntax.EqualsValueSyntax * SemanticModel -> bool
<Extension()>
Public Function TryGetSpeculativeSemanticModel (semanticModel As SemanticModel, position As Integer, initializer As EqualsValueSyntax, ByRef speculativeModel As SemanticModel) As Boolean

參數

semanticModel
SemanticModel
position
Int32
initializer
EqualsValueSyntax
speculativeModel
SemanticModel

傳回

適用於