語言

FragmentState.Equality(FragmentState, FragmentState) 運算子

定義

判斷兩個實例 FragmentState 是否描述同一 TextFragment 狀態。

public:
 static bool operator ==(System::Speech::Synthesis::TtsEngine::FragmentState state1, System::Speech::Synthesis::TtsEngine::FragmentState state2);
public static bool operator ==(System.Speech.Synthesis.TtsEngine.FragmentState state1, System.Speech.Synthesis.TtsEngine.FragmentState state2);
static member ( = ) : System.Speech.Synthesis.TtsEngine.FragmentState * System.Speech.Synthesis.TtsEngine.FragmentState -> bool
Public Shared Operator == (state1 As FragmentState, state2 As FragmentState) As Boolean

參數

state1
FragmentState

將描述狀態的實例TextFragment與該論證所提供的TextFragment實例state2比較。

state2
FragmentState

將描述狀態的實例TextFragment與該論證所提供的TextFragment實例state1比較。

傳回

true若 、 FragmentState 與 state1的兩實例state2描述相同TextFragment狀態,則回傳,否則false返回。

備註

此運算子 FragmentState.Equals(FragmentState)的等價方法是 。

適用於