Share via


Note

Please see Azure Cognitive Services for Speech documentation for the latest supported speech solutions.

VoiceInfo.Equals Method

Compares the fields of the voice with the specified VoiceInfo object to determine whether they contain the same values.

Namespace:  Microsoft.Speech.Synthesis
Assembly:  Microsoft.Speech (in Microsoft.Speech.dll)

Syntax

'Declaration
Public Overrides Function Equals ( _
    obj As Object _
) As Boolean
'Usage
Dim instance As VoiceInfo
Dim obj As Object
Dim returnValue As Boolean

returnValue = instance.Equals(obj)
public override bool Equals(
    Object obj
)

Parameters

Return Value

Type: System.Boolean
Returns true if the fields of the two VoiceInfo objects are equal; otherwise returns false.

Remarks

The Equals(Object) method takes a Object type as its parameter. If that object is not of the VoiceInfo type, the method returns false.

See Also

Reference

VoiceInfo Class

VoiceInfo Members

Microsoft.Speech.Synthesis Namespace