SqlMetaData SqlMetaData SqlMetaData SqlMetaData Class

定义

指定和检索的参数和列的元数据信息SqlDataRecord对象。Specifies and retrieves metadata information from parameters and columns of SqlDataRecord objects. 此类不能被继承。This class cannot be inherited.

public ref class SqlMetaData sealed
public sealed class SqlMetaData
type SqlMetaData = class
Public NotInheritable Class SqlMetaData
继承
SqlMetaDataSqlMetaDataSqlMetaDataSqlMetaData

示例

下面的示例演示如何创建多个SqlMetaData对象,其中介绍了一条记录的列元数据以及创建SqlDataRecordThe following example shows the creation of several SqlMetaData objects, which describe the column metadata of a record, and the creation of a SqlDataRecord. 列的值SqlDataRecord设置和SqlDataRecord发送到调用程序使用SqlContext类。The column values of the SqlDataRecord are set and the SqlDataRecord is sent to the calling program using the SqlContext class.

[Microsoft.SqlServer.Server.SqlProcedure]
public static void CreateNewRecord()
{
   // Variables.
   SqlMetaData column1Info;
   SqlMetaData column2Info;
   SqlMetaData column3Info;
   SqlDataRecord record;

   // Create the column metadata.
   column1Info = new SqlMetaData("Column1", SqlDbType.NVarChar, 12);
   column2Info = new SqlMetaData("Column2", SqlDbType.Int);
   column3Info = new SqlMetaData("Column3", SqlDbType.DateTime);
      
   // Create a new record with the column metadata.      
   record = new SqlDataRecord(new SqlMetaData[] { column1Info, 
                                                  column2Info, 
                                                  column3Info });

   // Set the record fields.
   record.SetString(0, "Hello World!");
   record.SetInt32(1, 42);
   record.SetDateTime(2, DateTime.Now);

   // Send the record to the calling program.
   SqlContext.Pipe.Send(record);
}
<Microsoft.SqlServer.Server.SqlProcedure()> _
Public Shared Sub CreateNewRecord()

   ' Variables.
   Dim column1Info As SqlMetaData 
   Dim column2Info As SqlMetaData
   Dim column3Info As SqlMetaData
   Dim record As SqlDataRecord

   ' Create the column metadata.
   column1Info = new SqlMetaData("Column1", SqlDbType.NVarChar, 12)
   column2Info = new SqlMetaData("Column2", SqlDbType.Int)
   column3Info = new SqlMetaData("Column3", SqlDbType.DateTime)

   ' Create a new record with the column metadata.      
   record = new SqlDataRecord(new SqlMetaData() { column1Info, _
                                                  column2Info, _
                                                  column3Info })

   ' Set the record fields.
   record.SetString(0, "Hello World!")
   record.SetInt32(1, 42)
   record.SetDateTime(2, DateTime.Now)

   ' Send the record to the calling program.
   SqlContext.Pipe.Send(record)

End Sub

构造函数

SqlMetaData(String, SqlDbType) SqlMetaData(String, SqlDbType) SqlMetaData(String, SqlDbType) SqlMetaData(String, SqlDbType)

初始化的新实例SqlMetaData使用指定的列名称和类型的类。Initializes a new instance of the SqlMetaData class with the specified column name and type.

SqlMetaData(String, SqlDbType, Boolean, Boolean, SortOrder, Int32) SqlMetaData(String, SqlDbType, Boolean, Boolean, SortOrder, Int32) SqlMetaData(String, SqlDbType, Boolean, Boolean, SortOrder, Int32) SqlMetaData(String, SqlDbType, Boolean, Boolean, SortOrder, Int32)

初始化的新实例SqlMetaData类与指定的列名称和默认服务器。Initializes a new instance of the SqlMetaData class with the specified column name, and default server. 这种形式的构造函数通过允许您指定的列是否在表值参数、 列和排序列的序号的排序顺序中是唯一支持表值参数。This form of the constructor supports table-valued parameters by allowing you to specify if the column is unique in the table-valued parameter, the sort order for the column, and the ordinal of the sort column.

SqlMetaData(String, SqlDbType, Byte, Byte) SqlMetaData(String, SqlDbType, Byte, Byte) SqlMetaData(String, SqlDbType, Byte, Byte) SqlMetaData(String, SqlDbType, Byte, Byte)

初始化的新实例SqlMetaData类与指定的列名称、 类型、 精度和小数位数。Initializes a new instance of the SqlMetaData class with the specified column name, type, precision, and scale.

SqlMetaData(String, SqlDbType, Byte, Byte, Boolean, Boolean, SortOrder, Int32) SqlMetaData(String, SqlDbType, Byte, Byte, Boolean, Boolean, SortOrder, Int32) SqlMetaData(String, SqlDbType, Byte, Byte, Boolean, Boolean, SortOrder, Int32) SqlMetaData(String, SqlDbType, Byte, Byte, Boolean, Boolean, SortOrder, Int32)

初始化的新实例SqlMetaData类指定的列名称、 类型、 精度、 小数位数和服务器默认值。Initializes a new instance of the SqlMetaData class with the specified column name, type, precision, scale, and server default. 这种形式的构造函数通过允许您指定的列是否在表值参数、 列和排序列的序号的排序顺序中是唯一支持表值参数。This form of the constructor supports table-valued parameters by allowing you to specify if the column is unique in the table-valued parameter, the sort order for the column, and the ordinal of the sort column.

SqlMetaData(String, SqlDbType, Int64) SqlMetaData(String, SqlDbType, Int64) SqlMetaData(String, SqlDbType, Int64) SqlMetaData(String, SqlDbType, Int64)

初始化的新实例SqlMetaData类与指定的列名称、 类型和最大长度。Initializes a new instance of the SqlMetaData class with the specified column name, type, and maximum length.

SqlMetaData(String, SqlDbType, Int64, Boolean, Boolean, SortOrder, Int32) SqlMetaData(String, SqlDbType, Int64, Boolean, Boolean, SortOrder, Int32) SqlMetaData(String, SqlDbType, Int64, Boolean, Boolean, SortOrder, Int32) SqlMetaData(String, SqlDbType, Int64, Boolean, Boolean, SortOrder, Int32)

初始化的新实例SqlMetaData类使用指定的列名称、 类型、 最大长度和服务器默认值。Initializes a new instance of the SqlMetaData class with the specified column name, type, maximum length, and server default. 这种形式的构造函数通过允许您指定的列是否在表值参数、 列和排序列的序号的排序顺序中是唯一支持表值参数。This form of the constructor supports table-valued parameters by allowing you to specify if the column is unique in the table-valued parameter, the sort order for the column, and the ordinal of the sort column.

SqlMetaData(String, SqlDbType, Int64, Byte, Byte, Int64, SqlCompareOptions, Type) SqlMetaData(String, SqlDbType, Int64, Byte, Byte, Int64, SqlCompareOptions, Type) SqlMetaData(String, SqlDbType, Int64, Byte, Byte, Int64, SqlCompareOptions, Type) SqlMetaData(String, SqlDbType, Int64, Byte, Byte, Int64, SqlCompareOptions, Type)

初始化的新实例SqlMetaData类与指定的列名称、 类型、 最大长度、 精度、 小数位数,区域设置 ID、 比较选项和用户定义类型 (UDT)。Initializes a new instance of the SqlMetaData class with the specified column name, type, maximum length, precision, scale, locale ID, compare options, and user-defined type (UDT).

SqlMetaData(String, SqlDbType, Int64, Byte, Byte, Int64, SqlCompareOptions, Type, Boolean, Boolean, SortOrder, Int32) SqlMetaData(String, SqlDbType, Int64, Byte, Byte, Int64, SqlCompareOptions, Type, Boolean, Boolean, SortOrder, Int32) SqlMetaData(String, SqlDbType, Int64, Byte, Byte, Int64, SqlCompareOptions, Type, Boolean, Boolean, SortOrder, Int32) SqlMetaData(String, SqlDbType, Int64, Byte, Byte, Int64, SqlCompareOptions, Type, Boolean, Boolean, SortOrder, Int32)

初始化的新实例SqlMetaData类与指定的列名称、 类型、 最大长度、 精度、 小数位数,区域设置 ID、 比较选项和用户定义类型 (UDT)。Initializes a new instance of the SqlMetaData class with the specified column name, type, maximum length, precision, scale, locale ID, compare options, and user-defined type (UDT). 这种形式的构造函数通过允许您指定的列是否在表值参数、 列和排序列的序号的排序顺序中是唯一支持表值参数。This form of the constructor supports table-valued parameters by allowing you to specify if the column is unique in the table-valued parameter, the sort order for the column, and the ordinal of the sort column.

SqlMetaData(String, SqlDbType, Int64, Int64, SqlCompareOptions) SqlMetaData(String, SqlDbType, Int64, Int64, SqlCompareOptions) SqlMetaData(String, SqlDbType, Int64, Int64, SqlCompareOptions) SqlMetaData(String, SqlDbType, Int64, Int64, SqlCompareOptions)

初始化的新实例SqlMetaData类与指定的列名称、 类型、 最大长度、 区域设置,并比较选项。Initializes a new instance of the SqlMetaData class with the specified column name, type, maximum length, locale, and compare options.

SqlMetaData(String, SqlDbType, Int64, Int64, SqlCompareOptions, Boolean, Boolean, SortOrder, Int32) SqlMetaData(String, SqlDbType, Int64, Int64, SqlCompareOptions, Boolean, Boolean, SortOrder, Int32) SqlMetaData(String, SqlDbType, Int64, Int64, SqlCompareOptions, Boolean, Boolean, SortOrder, Int32) SqlMetaData(String, SqlDbType, Int64, Int64, SqlCompareOptions, Boolean, Boolean, SortOrder, Int32)

初始化的新实例SqlMetaData类使用指定的列名称、 类型、 最大长度、 区域设置、 比较选项和服务器默认值。Initializes a new instance of the SqlMetaData class with the specified column name, type, maximum length, locale, compare options, and server default. 这种形式的构造函数通过允许您指定的列是否在表值参数、 列和排序列的序号的排序顺序中是唯一支持表值参数。This form of the constructor supports table-valued parameters by allowing you to specify if the column is unique in the table-valued parameter, the sort order for the column, and the ordinal of the sort column.

SqlMetaData(String, SqlDbType, String, String, String) SqlMetaData(String, SqlDbType, String, String, String) SqlMetaData(String, SqlDbType, String, String, String) SqlMetaData(String, SqlDbType, String, String, String)

初始化的新实例SqlMetaData使用指定的列名称、 类型、 数据库名称、 所属架构和对象名称的类。Initializes a new instance of the SqlMetaData class with the specified column name, type, database name, owning schema, and object name.

SqlMetaData(String, SqlDbType, String, String, String, Boolean, Boolean, SortOrder, Int32) SqlMetaData(String, SqlDbType, String, String, String, Boolean, Boolean, SortOrder, Int32) SqlMetaData(String, SqlDbType, String, String, String, Boolean, Boolean, SortOrder, Int32) SqlMetaData(String, SqlDbType, String, String, String, Boolean, Boolean, SortOrder, Int32)

初始化的新实例SqlMetaData类与指定的列名称、 数据库名称、 所属架构、 对象名称和默认服务器。Initializes a new instance of the SqlMetaData class with the specified column name, database name, owning schema, object name, and default server. 这种形式的构造函数通过允许您指定的列是否在表值参数、 列和排序列的序号的排序顺序中是唯一支持表值参数。This form of the constructor supports table-valued parameters by allowing you to specify if the column is unique in the table-valued parameter, the sort order for the column, and the ordinal of the sort column.

SqlMetaData(String, SqlDbType, Type) SqlMetaData(String, SqlDbType, Type) SqlMetaData(String, SqlDbType, Type) SqlMetaData(String, SqlDbType, Type)

初始化的新实例SqlMetaData使用指定的列名称、 类型和用户定义类型 (UDT) 的类。Initializes a new instance of the SqlMetaData class with the specified column name, type, and user-defined type (UDT).

SqlMetaData(String, SqlDbType, Type, String) SqlMetaData(String, SqlDbType, Type, String) SqlMetaData(String, SqlDbType, Type, String) SqlMetaData(String, SqlDbType, Type, String)

初始化的新实例SqlMetaData使用指定的列名称、 用户定义类型 (UDT) 和 SQLServer 类型的类。Initializes a new instance of the SqlMetaData class with the specified column name, user-defined type (UDT), and SQLServer type.

SqlMetaData(String, SqlDbType, Type, String, Boolean, Boolean, SortOrder, Int32) SqlMetaData(String, SqlDbType, Type, String, Boolean, Boolean, SortOrder, Int32) SqlMetaData(String, SqlDbType, Type, String, Boolean, Boolean, SortOrder, Int32) SqlMetaData(String, SqlDbType, Type, String, Boolean, Boolean, SortOrder, Int32)

初始化的新实例SqlMetaData类使用指定的列名称、 类型、 用户定义类型、 SQL Server 类型和服务器默认值。Initializes a new instance of the SqlMetaData class with the specified column name, type, user-defined type, SQL Server type, and server default. 这种形式的构造函数通过允许您指定的列是否在表值参数、 列和排序列的序号的排序顺序中是唯一支持表值参数。This form of the constructor supports table-valued parameters by allowing you to specify if the column is unique in the table-valued parameter, the sort order for the column, and the ordinal of the sort column.

属性

CompareOptions CompareOptions CompareOptions CompareOptions

获取用于列或参数的比较规则。Gets the comparison rules used for the column or parameter.

DbType DbType DbType DbType

获取列或参数的数据类型。Gets the data type of the column or parameter.

IsUniqueKey IsUniqueKey IsUniqueKey IsUniqueKey

指示表值参数中的列是否唯一。Indicates if the column in the table-valued parameter is unique.

LocaleId LocaleId LocaleId LocaleId

获取列或参数的区域设置 ID。Gets the locale ID of the column or parameter.

Max Max Max Max

获取的长度textntext,和image数据类型。Gets the length of text, ntext, and image data types.

MaxLength MaxLength MaxLength MaxLength

获取列或参数的最大长度。Gets the maximum length of the column or parameter.

Name Name Name Name

获取列或参数的名称。Gets the name of the column or parameter.

Precision Precision Precision Precision

获取列或参数的精度。Gets the precision of the column or parameter.

Scale Scale Scale Scale

获取列或参数的小数位数。Gets the scale of the column or parameter.

SortOrder SortOrder SortOrder SortOrder

返回列的排序顺序。Returns the sort order for a column.

SortOrdinal SortOrdinal SortOrdinal SortOrdinal

返回列排序的序号。Returns the ordinal of the sort column.

SqlDbType SqlDbType SqlDbType SqlDbType

获取列或参数的数据类型。Gets the data type of the column or parameter.

Type Type Type Type

获取用户定义类型 (UDT) 的公共语言运行时 (CLR) 类型。Gets the common language runtime (CLR) type of a user-defined type (UDT).

TypeName TypeName TypeName TypeName

获取用户定义类型 (UDT) 或 SQL Server 类型实例所表示的三部分组成的名称。Gets the three-part name of the user-defined type (UDT) or the SQL Server type represented by the instance.

UseServerDefault UseServerDefault UseServerDefault UseServerDefault

报告此列是否应使用默认服务器值。Reports whether this column should use the default server value.

XmlSchemaCollectionDatabase XmlSchemaCollectionDatabase XmlSchemaCollectionDatabase XmlSchemaCollectionDatabase

获取此 XML 实例的架构集合所在的数据库的名称。Gets the name of the database where the schema collection for this XML instance is located.

XmlSchemaCollectionName XmlSchemaCollectionName XmlSchemaCollectionName XmlSchemaCollectionName

获取此 XML 实例的架构集合的名称。Gets the name of the schema collection for this XML instance.

XmlSchemaCollectionOwningSchema XmlSchemaCollectionOwningSchema XmlSchemaCollectionOwningSchema XmlSchemaCollectionOwningSchema

获取此 XML 实例的架构集合所在的所属关系架构。Gets the owning relational schema where the schema collection for this XML instance is located.

方法

Adjust(Boolean) Adjust(Boolean) Adjust(Boolean) Adjust(Boolean)

验证指定Boolean值根据元数据,并根据需要调整该值。Validates the specified Boolean value against the metadata, and adjusts the value if necessary.

Adjust(Byte) Adjust(Byte) Adjust(Byte) Adjust(Byte)

验证指定Byte值根据元数据,并根据需要调整该值。Validates the specified Byte value against the metadata, and adjusts the value if necessary.

Adjust(Byte[]) Adjust(Byte[]) Adjust(Byte[]) Adjust(Byte[])

验证指定的数组Byte值根据元数据,并根据需要调整该值。Validates the specified array of Byte values against the metadata, and adjusts the value if necessary.

Adjust(Char) Adjust(Char) Adjust(Char) Adjust(Char)

验证指定Char值根据元数据,并根据需要调整该值。Validates the specified Char value against the metadata, and adjusts the value if necessary.

Adjust(Char[]) Adjust(Char[]) Adjust(Char[]) Adjust(Char[])

验证指定的数组Char值根据元数据,并根据需要调整该值。Validates the specified array of Char values against the metadata, and adjusts the value if necessary.

Adjust(DateTime) Adjust(DateTime) Adjust(DateTime) Adjust(DateTime)

验证指定DateTime值根据元数据,并根据需要调整该值。Validates the specified DateTime value against the metadata, and adjusts the value if necessary.

Adjust(DateTimeOffset) Adjust(DateTimeOffset) Adjust(DateTimeOffset) Adjust(DateTimeOffset)

验证指定DateTimeOffset值根据元数据,并根据需要调整该值。Validates the specified DateTimeOffset value against the metadata, and adjusts the value if necessary.

Adjust(Decimal) Adjust(Decimal) Adjust(Decimal) Adjust(Decimal)

验证指定Decimal值根据元数据,并根据需要调整该值。Validates the specified Decimal value against the metadata, and adjusts the value if necessary.

Adjust(Double) Adjust(Double) Adjust(Double) Adjust(Double)

验证指定Double值根据元数据,并根据需要调整该值。Validates the specified Double value against the metadata, and adjusts the value if necessary.

Adjust(Guid) Adjust(Guid) Adjust(Guid) Adjust(Guid)

验证指定Guid值根据元数据,并根据需要调整该值。Validates the specified Guid value against the metadata, and adjusts the value if necessary.

Adjust(Int16) Adjust(Int16) Adjust(Int16) Adjust(Int16)

验证指定Int16值根据元数据,并根据需要调整该值。Validates the specified Int16 value against the metadata, and adjusts the value if necessary.

Adjust(Int32) Adjust(Int32) Adjust(Int32) Adjust(Int32)

验证指定Int32值根据元数据,并根据需要调整该值。Validates the specified Int32 value against the metadata, and adjusts the value if necessary.

Adjust(Int64) Adjust(Int64) Adjust(Int64) Adjust(Int64)

验证指定Int64值根据元数据,并根据需要调整该值。Validates the specified Int64 value against the metadata, and adjusts the value if necessary.

Adjust(Object) Adjust(Object) Adjust(Object) Adjust(Object)

验证指定Object值根据元数据,并根据需要调整该值。Validates the specified Object value against the metadata, and adjusts the value if necessary.

Adjust(Single) Adjust(Single) Adjust(Single) Adjust(Single)

验证指定Single值根据元数据,并根据需要调整该值。Validates the specified Single value against the metadata, and adjusts the value if necessary.

Adjust(SqlBinary) Adjust(SqlBinary) Adjust(SqlBinary) Adjust(SqlBinary)

验证指定SqlBinary值根据元数据,并根据需要调整该值。Validates the specified SqlBinary value against the metadata, and adjusts the value if necessary.

Adjust(SqlBoolean) Adjust(SqlBoolean) Adjust(SqlBoolean) Adjust(SqlBoolean)

验证指定SqlBoolean值根据元数据,并根据需要调整该值。Validates the specified SqlBoolean value against the metadata, and adjusts the value if necessary.

Adjust(SqlByte) Adjust(SqlByte) Adjust(SqlByte) Adjust(SqlByte)

验证指定SqlByte值根据元数据,并根据需要调整该值。Validates the specified SqlByte value against the metadata, and adjusts the value if necessary.

Adjust(SqlBytes) Adjust(SqlBytes) Adjust(SqlBytes) Adjust(SqlBytes)

验证指定SqlBytes值根据元数据,并根据需要调整该值。Validates the specified SqlBytes value against the metadata, and adjusts the value if necessary.

Adjust(SqlChars) Adjust(SqlChars) Adjust(SqlChars) Adjust(SqlChars)

验证指定SqlChars值根据元数据,并根据需要调整该值。Validates the specified SqlChars value against the metadata, and adjusts the value if necessary.

Adjust(SqlDateTime) Adjust(SqlDateTime) Adjust(SqlDateTime) Adjust(SqlDateTime)

验证指定SqlDateTime值根据元数据,并根据需要调整该值。Validates the specified SqlDateTime value against the metadata, and adjusts the value if necessary.

Adjust(SqlDecimal) Adjust(SqlDecimal) Adjust(SqlDecimal) Adjust(SqlDecimal)

验证指定SqlDecimal值根据元数据,并根据需要调整该值。Validates the specified SqlDecimal value against the metadata, and adjusts the value if necessary.

Adjust(SqlDouble) Adjust(SqlDouble) Adjust(SqlDouble) Adjust(SqlDouble)

验证指定SqlDouble值根据元数据,并根据需要调整该值。Validates the specified SqlDouble value against the metadata, and adjusts the value if necessary.

Adjust(SqlGuid) Adjust(SqlGuid) Adjust(SqlGuid) Adjust(SqlGuid)

验证指定SqlGuid值根据元数据,并根据需要调整该值。Validates the specified SqlGuid value against the metadata, and adjusts the value if necessary.

Adjust(SqlInt16) Adjust(SqlInt16) Adjust(SqlInt16) Adjust(SqlInt16)

验证指定SqlInt16值根据元数据,并根据需要调整该值。Validates the specified SqlInt16 value against the metadata, and adjusts the value if necessary.

Adjust(SqlInt32) Adjust(SqlInt32) Adjust(SqlInt32) Adjust(SqlInt32)

验证指定SqlInt32值根据元数据,并根据需要调整该值。Validates the specified SqlInt32 value against the metadata, and adjusts the value if necessary.

Adjust(SqlInt64) Adjust(SqlInt64) Adjust(SqlInt64) Adjust(SqlInt64)

验证指定SqlInt64值根据元数据,并根据需要调整该值。Validates the specified SqlInt64 value against the metadata, and adjusts the value if necessary.

Adjust(SqlMoney) Adjust(SqlMoney) Adjust(SqlMoney) Adjust(SqlMoney)

验证指定SqlMoney值根据元数据,并根据需要调整该值。Validates the specified SqlMoney value against the metadata, and adjusts the value if necessary.

Adjust(SqlSingle) Adjust(SqlSingle) Adjust(SqlSingle) Adjust(SqlSingle)

验证指定SqlSingle值根据元数据,并根据需要调整该值。Validates the specified SqlSingle value against the metadata, and adjusts the value if necessary.

Adjust(SqlString) Adjust(SqlString) Adjust(SqlString) Adjust(SqlString)

验证指定SqlString值根据元数据,并根据需要调整该值。Validates the specified SqlString value against the metadata, and adjusts the value if necessary.

Adjust(SqlXml) Adjust(SqlXml) Adjust(SqlXml) Adjust(SqlXml)

验证指定SqlXml值根据元数据,并根据需要调整该值。Validates the specified SqlXml value against the metadata, and adjusts the value if necessary.

Adjust(String) Adjust(String) Adjust(String) Adjust(String)

验证指定String值根据元数据,并根据需要调整该值。Validates the specified String value against the metadata, and adjusts the value if necessary.

Adjust(TimeSpan) Adjust(TimeSpan) Adjust(TimeSpan) Adjust(TimeSpan)

验证指定TimeSpan值根据元数据,并根据需要调整该值。Validates the specified TimeSpan value against the metadata, and adjusts the value if necessary.

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

确定指定的对象是否等于当前对象。Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode() GetHashCode() GetHashCode() GetHashCode()

作为默认哈希函数。Serves as the default hash function.

(Inherited from Object)
GetType() GetType() GetType() GetType()

获取当前实例的 TypeGets the Type of the current instance.

(Inherited from Object)
InferFromValue(Object, String) InferFromValue(Object, String) InferFromValue(Object, String) InferFromValue(Object, String)

推导出元数据从指定的对象并将其作为返回SqlMetaData实例。Infers the metadata from the specified object and returns it as a SqlMetaData instance.

MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

创建当前 Object 的浅表副本。Creates a shallow copy of the current Object.

(Inherited from Object)
ToString() ToString() ToString() ToString()

返回表示当前对象的字符串。Returns a string that represents the current object.

(Inherited from Object)

适用于