Condividi tramite


ResourceConfig<TModel>.CreateNested<TNestedModel> Method

Definition

public Microsoft.Azure.Commands.Common.Strategies.NestedResourceConfig<TNestedModel,TModel> CreateNested<TNestedModel> (Microsoft.Azure.Commands.Common.Strategies.NestedResourceStrategy<TNestedModel,TModel> strategy, string name, Func<Microsoft.Azure.Commands.Common.Strategies.IEngine,TNestedModel> createModel = default) where TNestedModel : class, new();
member this.CreateNested : Microsoft.Azure.Commands.Common.Strategies.NestedResourceStrategy<'NestedModel, 'Model (requires 'NestedModel : null and 'NestedModel : (new : unit -> 'NestedModel) and 'Model : null)> * string * Func<Microsoft.Azure.Commands.Common.Strategies.IEngine, 'NestedModel (requires 'NestedModel : null and 'NestedModel : (new : unit -> 'NestedModel))> -> Microsoft.Azure.Commands.Common.Strategies.NestedResourceConfig<'NestedModel, 'Model (requires 'NestedModel : null and 'NestedModel : (new : unit -> 'NestedModel) and 'Model : null)> (requires 'NestedModel : null and 'NestedModel : (new : unit -> 'NestedModel))
Public Function CreateNested(Of TNestedModel As {Class, New}) (strategy As NestedResourceStrategy(Of TNestedModel, TModel), name As String, Optional createModel As Func(Of IEngine, TNestedModel) = Nothing) As NestedResourceConfig(Of TNestedModel, TModel)

Type Parameters

TNestedModel

Parameters

strategy
NestedResourceStrategy<TNestedModel,TModel>
name
String
createModel
Func<IEngine,TNestedModel>

Returns

NestedResourceConfig<TNestedModel,TModel>

Applies to