SqlSmoObject.InitChildCollection(Urn, Boolean) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
初始化與該類型相關的子物件集合。 例如,名稱 Column 會初始化 Columns 集合。
public void InitChildCollection(Microsoft.SqlServer.Management.Sdk.Sfc.Urn childType, bool forScripting);
member this.InitChildCollection : Microsoft.SqlServer.Management.Sdk.Sfc.Urn * bool -> unit
Public Sub InitChildCollection (childType As Urn, forScripting As Boolean)
參數
- childType
- Urn
要初始化的子物件集合類型。
- forScripting
- Boolean
當為真時,查詢中會擷取用於撰寫集合中物件腳本所需的屬性集合。 當 false 時,只會擷取預設屬性。 使用 Server.SetDefaultInitFields 來控制屬性集合。
備註
若 childType Urn 指定多個層級,如「PartitionFunction/PartitionFunctionParameter」,應用程式應先在 Urn 中初始化第一層級,再初始化第二層級。