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


Интерфейс IViewOptions

The IViewOptions class is an interface that represents a collection of options that is associated with a view.

Этот API-интерфейс несовместим с CLS. В качестве CLS-совместимой альтернативы можно использовать .

Пространство имен:  Microsoft.SqlServer.Management.Smo
Сборка:  Microsoft.SqlServer.Smo (в Microsoft.SqlServer.Smo.dll)

Синтаксис

'Декларация
<StateChangeEventAttribute("ALTER_SCHEMA", "VIEW")> _
<DisplayNameKeyAttribute("IViewOptions_Name")> _
<DisplayDescriptionKeyAttribute("IViewOptions_Desc")> _
<StateChangeEventAttribute("ALTER_VIEW", "VIEW")> _
<CLSCompliantAttribute(False)> _
<TypeConverterAttribute(GetType(LocalizableTypeConverter))> _
<StateChangeEventAttribute("CREATE_VIEW", "VIEW")> _
<EvaluationModeAttribute(AutomatedPolicyEvaluationMode.None Or AutomatedPolicyEvaluationMode.Enforce Or AutomatedPolicyEvaluationMode.CheckOnChanges Or AutomatedPolicyEvaluationMode.CheckOnSchedule)> _
<StateChangeEventAttribute("RENAME", "VIEW")> _
<StateChangeEventAttribute("ALTER_AUTHORIZATION_DATABASE", "VIEW")> _
<LocalizedPropertyResourcesAttribute("Microsoft.SqlServer.Management.Smo.LocalizableResources")> _
Public Interface IViewOptions _
    Inherits IDmfFacet
'Применение
Dim instance As IViewOptions
[StateChangeEventAttribute("ALTER_SCHEMA", "VIEW")]
[DisplayNameKeyAttribute("IViewOptions_Name")]
[DisplayDescriptionKeyAttribute("IViewOptions_Desc")]
[StateChangeEventAttribute("ALTER_VIEW", "VIEW")]
[CLSCompliantAttribute(false)]
[TypeConverterAttribute(typeof(LocalizableTypeConverter))]
[StateChangeEventAttribute("CREATE_VIEW", "VIEW")]
[EvaluationModeAttribute(AutomatedPolicyEvaluationMode.None|AutomatedPolicyEvaluationMode.Enforce|AutomatedPolicyEvaluationMode.CheckOnChanges|AutomatedPolicyEvaluationMode.CheckOnSchedule)]
[StateChangeEventAttribute("RENAME", "VIEW")]
[StateChangeEventAttribute("ALTER_AUTHORIZATION_DATABASE", "VIEW")]
[LocalizedPropertyResourcesAttribute("Microsoft.SqlServer.Management.Smo.LocalizableResources")]
public interface IViewOptions : IDmfFacet
[StateChangeEventAttribute(L"ALTER_SCHEMA", L"VIEW")]
[DisplayNameKeyAttribute(L"IViewOptions_Name")]
[DisplayDescriptionKeyAttribute(L"IViewOptions_Desc")]
[StateChangeEventAttribute(L"ALTER_VIEW", L"VIEW")]
[CLSCompliantAttribute(false)]
[TypeConverterAttribute(typeof(LocalizableTypeConverter))]
[StateChangeEventAttribute(L"CREATE_VIEW", L"VIEW")]
[EvaluationModeAttribute(AutomatedPolicyEvaluationMode::None|AutomatedPolicyEvaluationMode::Enforce|AutomatedPolicyEvaluationMode::CheckOnChanges|AutomatedPolicyEvaluationMode::CheckOnSchedule)]
[StateChangeEventAttribute(L"RENAME", L"VIEW")]
[StateChangeEventAttribute(L"ALTER_AUTHORIZATION_DATABASE", L"VIEW")]
[LocalizedPropertyResourcesAttribute(L"Microsoft.SqlServer.Management.Smo.LocalizableResources")]
public interface class IViewOptions : IDmfFacet
[<StateChangeEventAttribute("ALTER_SCHEMA", "VIEW")>]
[<DisplayNameKeyAttribute("IViewOptions_Name")>]
[<DisplayDescriptionKeyAttribute("IViewOptions_Desc")>]
[<StateChangeEventAttribute("ALTER_VIEW", "VIEW")>]
[<CLSCompliantAttribute(false)>]
[<TypeConverterAttribute(typeof(LocalizableTypeConverter))>]
[<StateChangeEventAttribute("CREATE_VIEW", "VIEW")>]
[<EvaluationModeAttribute(AutomatedPolicyEvaluationMode.None|AutomatedPolicyEvaluationMode.Enforce|AutomatedPolicyEvaluationMode.CheckOnChanges|AutomatedPolicyEvaluationMode.CheckOnSchedule)>]
[<StateChangeEventAttribute("RENAME", "VIEW")>]
[<StateChangeEventAttribute("ALTER_AUTHORIZATION_DATABASE", "VIEW")>]
[<LocalizedPropertyResourcesAttribute("Microsoft.SqlServer.Management.Smo.LocalizableResources")>]
type IViewOptions =  
    interface
        interface IDmfFacet
    end
public interface IViewOptions extends IDmfFacet

Тип IViewOptions обеспечивает доступ к следующим элементам.

Свойства

  Имя Описание
Открытое свойство AnsiNullsStatus Gets or sets the Boolean value that determines whether ISO null handling is enabled on the view.
Открытое свойство CreateDate Gets the date and time when the view was created.
Открытое свойство ID Gets the ID value that uniquely identifies the view.
Открытое свойство IsEncrypted Indicates whether the view is encrypted.
Открытое свойство IsSchemaBound Gets the Boolean value that determines whether a schema is bound to the view.
Открытое свойство IsSchemaOwned Gets the Boolean value that determines whether the view schema has an owner.
Открытое свойство IsSystemObject Gets the Boolean value that determines whether the view is a system object.
Открытое свойство Name Gets or sets the name of the view.
Открытое свойство Owner Gets the owner of the view options.
Открытое свойство QuotedIdentifierStatus Gets or sets the Boolean value that determines whether identifiers delimited by double quotation marks are Transact-SQL reserved keywords or contain characters not usually allowed by the Transact-SQL syntax rules.
Открытое свойство ReturnsViewMetadata Gets the Boolean value that determines whether the metadata is returned with the view data.
Открытое свойство Schema Gets or sets the schema that is associated with the view options.

В начало