Поделиться через


Класс 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

Все общие статические члены этого типа (Shared в Microsoft Visual Basic) можно использовать в многопоточных операциях. Потокобезопасная работа с членами экземпляров типа не гарантируется.

Примеры

Установка свойств

Безопасность многопоточности

Любые открытые статический (Shared в Visual Basic) элементы этого типа потокобезопасны. Потокобезопасность с элементами экземпляров не гарантируется.

См. также

Справочник

Пространство имен Microsoft.SqlServer.Management.Smo