OperationInfo.ToString 方法

定义

提供表示此实例的字符串。Provides a string that represents this instance.

public:
 override System::String ^ ToString();
public override string ToString ();
override this.ToString : unit -> string
Public Overrides Function ToString () As String

返回

String

一个表示此实例的字符串。A string that represents this instance.

示例

下面的示例演示如何使用 ToString 方法。The following example demonstrates how to use the ToString method.

OperationInfo info = new OperationInfo();
String infoString = info.ToString();
Dim info As New OperationInfo()
Dim infoString = info.ToString()

注解

如果存在,则此方法返回 ContractName 值,否则,它返回 Name 值。This method returns the ContractName value if extant; otherwise, it returns the Name value.

适用于