UpgradeSession.UpgradeInstance 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
| 名稱 | Description |
|---|---|
| UpgradeInstance(Type, List<SfcInstanceSerializedData>) |
這是域的輔助功能,用來從序列化的實例資料中取得實例 |
| UpgradeInstance(List<SfcInstanceSerializedData>, Int32, String, Dictionary<String,Object>) |
此函式將序列化資訊傳送至網域,並尋找升級後的物件實例 輸出必須是 sml uri 與對應實例的對清單。 升級可能導致多個實例,因此我們預期會有清單。 若實例被刪除,則可回傳 null。 |
UpgradeInstance(Type, List<SfcInstanceSerializedData>)
這是域的輔助功能,用來從序列化的實例資料中取得實例
public object UpgradeInstance(Type newInstanceType, System.Collections.Generic.List<Microsoft.SqlServer.Management.Sdk.Sfc.SfcInstanceSerializedData> sfcInstanceData);
member this.UpgradeInstance : Type * System.Collections.Generic.List<Microsoft.SqlServer.Management.Sdk.Sfc.SfcInstanceSerializedData> -> obj
Public Function UpgradeInstance (newInstanceType As Type, sfcInstanceData As List(Of SfcInstanceSerializedData)) As Object
參數
- newInstanceType
- Type
- sfcInstanceData
- List<SfcInstanceSerializedData>
傳回
適用於
UpgradeInstance(List<SfcInstanceSerializedData>, Int32, String, Dictionary<String,Object>)
此函式將序列化資訊傳送至網域,並尋找升級後的物件實例
輸出必須是 sml uri 與對應實例的對清單。 升級可能導致多個實例,因此我們預期會有清單。 若實例被刪除,則可回傳 null。
public virtual System.Collections.Generic.List<System.Collections.Generic.KeyValuePair<string,object>> UpgradeInstance(System.Collections.Generic.List<Microsoft.SqlServer.Management.Sdk.Sfc.SfcInstanceSerializedData> sfcInstanceData, int fileVersion, string smlUri, System.Collections.Generic.Dictionary<string,object> sfcCache);
abstract member UpgradeInstance : System.Collections.Generic.List<Microsoft.SqlServer.Management.Sdk.Sfc.SfcInstanceSerializedData> * int * string * System.Collections.Generic.Dictionary<string, obj> -> System.Collections.Generic.List<System.Collections.Generic.KeyValuePair<string, obj>>
override this.UpgradeInstance : System.Collections.Generic.List<Microsoft.SqlServer.Management.Sdk.Sfc.SfcInstanceSerializedData> * int * string * System.Collections.Generic.Dictionary<string, obj> -> System.Collections.Generic.List<System.Collections.Generic.KeyValuePair<string, obj>>
Public Overridable Function UpgradeInstance (sfcInstanceData As List(Of SfcInstanceSerializedData), fileVersion As Integer, smlUri As String, sfcCache As Dictionary(Of String, Object)) As List(Of KeyValuePair(Of String, Object))
參數
- sfcInstanceData
- List<SfcInstanceSerializedData>
- fileVersion
- Int32
- smlUri
- String
- sfcCache
- Dictionary<String,Object>