DatabaseSnapshotExtender 类

Adds methods and properties to the DatabaseSnapshot object.

此 API 不符合 CLS。 

继承层次结构

System.Object
  Microsoft.SqlServer.Management.Sdk.Sfc.SfcObjectExtender<Database>
    Microsoft.SqlServer.Management.Smo.SmoObjectExtender<Database>
      Microsoft.SqlServer.Management.Smo.DatabaseSnapshotExtender

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

语法

声明
<CLSCompliantAttribute(False)> _
Public Class DatabaseSnapshotExtender _
    Inherits SmoObjectExtender(Of Database) _
    Implements ISfcValidate
用法
Dim instance As DatabaseSnapshotExtender
[CLSCompliantAttribute(false)]
public class DatabaseSnapshotExtender : SmoObjectExtender<Database>, 
    ISfcValidate
[CLSCompliantAttribute(false)]
public ref class DatabaseSnapshotExtender : public SmoObjectExtender<Database^>, 
    ISfcValidate
[<CLSCompliantAttribute(false)>]
type DatabaseSnapshotExtender =  
    class 
        inherit SmoObjectExtender<Database>
        interface ISfcValidate 
    end
public class DatabaseSnapshotExtender extends SmoObjectExtender<Database> implements ISfcValidate

DatabaseSnapshotExtender 类型公开以下成员。

构造函数

  名称 说明
公共方法 DatabaseSnapshotExtender() Initializes a new instance of the DatabaseSnapshotExtender class that has the default property values.
公共方法 DatabaseSnapshotExtender(Database) Initializes a new instance of the DatabaseSnapshotExtender class that has the database parameter specified.

页首

属性

  名称 说明
公共属性 Files Gets a collection of the data and log files that are associated with a database.
受保护属性 Parent 不要在您的代码中直接引用此成员。它支持 SQL Server 基础结构。 (从 SfcObjectExtender<TSfcInstance> 继承。)

页首

方法

  名称 说明
公共方法 Equals (从 Object 继承。)
受保护方法 Finalize (从 Object 继承。)
公共方法 GetHashCode (从 Object 继承。)
受保护方法 GetParentSfcPropertySet Returns an instance of the parent objects property set. (从 SmoObjectExtender<T> 继承。)
公共方法 GetPropertySet 不要在您的代码中直接引用此成员。它支持 SQL Server 基础结构。 (从 SfcObjectExtender<TSfcInstance> 继承。)
公共方法 GetType (从 Object 继承。)
受保护方法 MemberwiseClone (从 Object 继承。)
受保护方法 OnPropertyChanged Raises the PropertyChanged event when it has any subscriber. 不要在您的代码中直接引用此成员。它支持 SQL Server 基础结构。 (从 SfcObjectExtender<TSfcInstance> 继承。)
受保护方法 OnPropertyMetadataChanged 不要在您的代码中直接引用此成员。它支持 SQL Server 基础结构。 (从 SfcObjectExtender<TSfcInstance> 继承。)
受保护方法 parent_PropertyChanged Indicates the changes on the parent property in the database. (覆盖 SfcObjectExtender<TSfcInstance>.parent_PropertyChanged(Object, PropertyChangedEventArgs)。)
受保护方法 parent_PropertyMetadataChanged Indicates the parent object in the PropertyMetadata. 不要在您的代码中直接引用此成员。它支持 SQL Server 基础结构。 (从 SfcObjectExtender<TSfcInstance> 继承。)
受保护方法 RegisterParentProperty Registers the property of the parent that has not been included in properties collection. 不要在您的代码中直接引用此成员。它支持 SQL Server 基础结构。 (从 SfcObjectExtender<TSfcInstance> 继承。)
受保护方法 RegisterProperty(PropertyInfo) Registers an additional reflected property. 不要在您的代码中直接引用此成员。它支持 SQL Server 基础结构。 (从 SfcObjectExtender<TSfcInstance> 继承。)
受保护方法 RegisterProperty(PropertyInfo, String) 不要在您的代码中直接引用此成员。它支持 SQL Server 基础结构。 (从 SfcObjectExtender<TSfcInstance> 继承。)
公共方法 ToString (从 Object 继承。)

页首

事件

  名称 说明
公共事件 PropertyChanged 不要在您的代码中直接引用此成员。它支持 SQL Server 基础结构。 (从 SfcObjectExtender<TSfcInstance> 继承。)
公共事件 PropertyMetadataChanged 不要在您的代码中直接引用此成员。它支持 SQL Server 基础结构。 (从 SfcObjectExtender<TSfcInstance> 继承。)

页首

显式接口实现

  名称 说明
显式接口实现私有方法 ISfcValidate.Validate Checks whether the DatabaseSnapshot object is properly configured.

页首

线程安全

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

请参阅

参考

Microsoft.SqlServer.Management.Smo 命名空间