SpeechEventInfo.Equality(SpeechEventInfo, SpeechEventInfo) SpeechEventInfo.Equality(SpeechEventInfo, SpeechEventInfo) SpeechEventInfo.Equality(SpeechEventInfo, SpeechEventInfo) SpeechEventInfo.Equality(SpeechEventInfo, SpeechEventInfo) Operator

定義

判斷 SpeechEventInfo 的兩個執行個體是否相等。Determines whether two instances of SpeechEventInfo are equal.

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

參數

event1
SpeechEventInfo SpeechEventInfo SpeechEventInfo SpeechEventInfo

要與 event2 相比較的 SpeechEventInfo 物件。The SpeechEventInfo object to compare to event2.

event2
SpeechEventInfo SpeechEventInfo SpeechEventInfo SpeechEventInfo

要與 event1 相比較的 SpeechEventInfo 物件。The SpeechEventInfo object to compare to event1.

傳回

如果 event1event2 相同則為 true,否則為 falsetrue if event1 is the same as event2; otherwise, false.

備註

這個運算子的對等方法是SpeechEventInfo.Equals(SpeechEventInfo)The equivalent method for this operator is SpeechEventInfo.Equals(SpeechEventInfo).

適用於