Property 类

The Property object provides programmatic access to the properties of all the SMO objects.

继承层次结构

System.Object
  Microsoft.SqlServer.Management.Smo.Property
    Microsoft.SqlServer.Management.Smo.Wmi.ProtocolProperty

命名空间:  Microsoft.SqlServer.Management.Smo
程序集:  Microsoft.SqlServer.Smo(在 Microsoft.SqlServer.Smo.dll 中)

语法

声明
Public Class Property _
    Implements ISfcProperty
用法
Dim instance As [Property]
public class Property : ISfcProperty
public ref class Property : ISfcProperty
type Property =  
    class 
        interface ISfcProperty 
    end
public class Property implements ISfcProperty

Property 类型公开以下成员。

属性

  名称 说明
公共属性 Dirty Gets the Boolean property value that specifies whether the property correctly reflects the current value of the entity that it represents on the instance of SQL Server.
公共属性 Expensive Gets the Boolean property value that specifies whether it takes a long time to load the property's values.
公共属性 IsNull Gets the Boolean property value that specifies whether the property is set to null.
公共属性 Name Gets the name of the property.
公共属性 Readable Gets the Boolean property value that specifies whether the value of the property can be retrieved.
公共属性 Retrieved Gets the Boolean property value that specifies whether the property has been retrieved already.
公共属性 Type Gets the type of property.
公共属性 Value Gets or sets the value of the property.
公共属性 Writable Gets the Boolean property value that specifies whether the property can be modified.

页首

方法

  名称 说明
公共方法 CompareTo Compares the Property object to another object.
公共方法 Equals Determines whether two Property objects are equal. (覆盖 Object.Equals(Object)。)
受保护方法 Finalize (从 Object 继承。)
公共方法 GetHashCode Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table. (覆盖 Object.GetHashCode()。)
公共方法 GetType (从 Object 继承。)
受保护方法 MemberwiseClone (从 Object 继承。)
公共方法 ToString Returns a String value that represents the current object. (覆盖 Object.ToString()。)

页首

运算符

  名称 说明
公共运算符静态成员 Equality Determines whether two objects are equal by performing an equality operation on two Property objects.
公共运算符静态成员 GreaterThan Determines whether one object is greater than another object by performing an greater than operation on two Property objects.
公共运算符静态成员 Inequality Determines whether two objects are unequal by performing an inequality operation on two Property objects.
公共运算符静态成员 LessThan Determines whether one object is less than another object by performing an less than operation on two Property objects.

页首

显式接口实现

  名称 说明
显式接口实现私有属性 ISfcProperty.Attributes Returns an attribute collection that contains properties.
显式接口实现私有属性 ISfcProperty.Dirty Gets the Boolean property value that specifies whether the property correctly reflects the current value of the entity that it represents on the instance of SQL Server.
显式接口实现私有属性 ISfcProperty.Enabled Gets the Boolean property value that specifies whether the property is enabled on the entity that it represents on the instance of SQL Server.
显式接口实现私有属性 ISfcProperty.IsNull Gets the Boolean property value that specifies whether the property is set to null.
显式接口实现私有属性 ISfcProperty.Name Gets the name of the property.
显式接口实现私有属性 ISfcProperty.Required Gets the Boolean property value that specifies whether the property is required,.
显式接口实现私有属性 ISfcProperty.Type Gets the type of property.
显式接口实现私有属性 ISfcProperty.Value Gets or sets the value of the property.
显式接口实现私有属性 ISfcProperty.Writable Gets the Boolean property value that specifies whether the property can be modified.

页首

注释

Thread Safety

此类型的任何公共静态(Microsoft Visual Basic 中的 Shared)成员在多线程操作中是安全的。但不保证所有实例成员都是线程安全的。

示例

设置属性

线程安全

此类型的任何公共 static(在 Visual Basic 中为 Shared) 成员都是线程安全的。不保证所有实例成员都是线程安全的。

请参阅

参考

Microsoft.SqlServer.Management.Smo 命名空间