共用方式為


SchemaDeploymentOptions 類別

表示可用於設定部署計劃產生方式的設定。

繼承階層架構

System.Object
  Microsoft.Data.Schema.Build.SchemaDeploymentOptions
    Microsoft.Data.Schema.Sql.Build.SqlSchemaDeploymentOptions

命名空間:  Microsoft.Data.Schema.Build
組件:  Microsoft.Data.Schema (在 Microsoft.Data.Schema.dll 中)

語法

'宣告
<DatabaseSchemaProviderCompatibilityAttribute(GetType(DatabaseSchemaProvider))> _
Public MustInherit Class SchemaDeploymentOptions _
    Implements IExtensionInformation, IExtension
[DatabaseSchemaProviderCompatibilityAttribute(typeof(DatabaseSchemaProvider))]
public abstract class SchemaDeploymentOptions : IExtensionInformation, 
    IExtension
[DatabaseSchemaProviderCompatibilityAttribute(typeof(DatabaseSchemaProvider))]
public ref class SchemaDeploymentOptions abstract : IExtensionInformation, 
    IExtension
[<AbstractClass>]
[<DatabaseSchemaProviderCompatibilityAttribute(typeof(DatabaseSchemaProvider))>]
type SchemaDeploymentOptions =  
    class
        interface IExtensionInformation
        interface IExtension
    end
public abstract class SchemaDeploymentOptions implements IExtensionInformation, IExtension

SchemaDeploymentOptions 型別會公開下列成員。

建構函式

  名稱 說明
受保護的方法 SchemaDeploymentOptions 初始化 SchemaDeploymentOptions 類別的新執行個體。

回頁首

屬性

  名稱 說明
公用屬性 BuildtimeContributorsMustExist
公用屬性 ComparerConfiguration 取得選取的比較子組態。
公用屬性 CreateNewDatabase 取得或設定值,這個值表示是否要在部署期間建立新的目標資料庫。
公用屬性 DropObjectsNotInSource 取得或設定值,這個值表示是否要捨棄目標資料庫中不在來源資料庫中的任何物件。
公用屬性 ExcludedModelElements 取得或設定使用者選擇從目標資料庫中排除的模型項目清單。
公用屬性 ExtensionHandle 取得或設定這個擴充功能的擴充控制代碼。
公用屬性 SerializationData 取得或設定這個物件的 XML 序列化資料。
公用屬性 TargetConnectionString 取得或設定目標資料庫的連接字串。
公用屬性 TargetDatabaseName 取得或設定目標資料庫的名稱。
公用屬性 TreatVerificationErrorsAsWarnings 取得或設定值,這個值表示是否要將所有驗證錯誤視為警告。
公用屬性 VerifyDeployment 取得或設定值,這個值表示是否要在部署完成之後驗證部署。

回頁首

方法

  名稱 說明
公用方法 CreateCopy 傳回這些選項設定的複本。
公用方法 Equals 判斷指定的 Object 和目前的 Object 是否相等。 (繼承自 Object)。
受保護的方法 Finalize 允許物件在記憶體回收進行回收之前,嘗試釋放資源並執行其他清除作業。 (繼承自 Object)。
公用方法 GetHashCode 做為特定型別的雜湊函式。 (繼承自 Object)。
公用方法 GetType 取得目前執行個體的 Type。 (繼承自 Object)。
受保護的方法 MemberwiseClone 建立目前 Object 的淺層複本 (Shallow Copy)。 (繼承自 Object)。
受保護的方法 OnExtensionHandle 在叫用 SetExtensionHandle 方法時呼叫。
受保護的方法 OnInitialize 初始化此類別時由 Visual Studio 中的部署設定視窗 (例如 Database.sqldeployment) 進行呼叫。
公用方法 SetExtensionHandle 設定 ExtensionHandle 屬性的值,並呼叫 OnExtensionHandle 方法。
公用方法 ToString 傳回表示目前物件的字串。 (繼承自 Object)。

回頁首

備註

資料庫結構描述提供者會提供這個類別的自訂子類別,其中提供額外的特定資料庫選項。 建構 SchemaDeployment 執行個體後,其屬性則可提供資料庫結構描述提供者之適當選項的執行個體。

執行緒安全

這個型別的任何 Public static (在 Visual Basic 中為 Shared) 成員都具備執行緒安全。並非所有的執行個體成員都是安全執行緒。

請參閱

參考

Microsoft.Data.Schema.Build 命名空間

其他資源

擴充 Visual Studio 的資料庫功能