NestedResourceStrategy.Create Method

Definition

Overloads

Create<TModel,TParentModel>(String, Func<TParentModel,String,TModel>, Action<TParentModel,String,TModel>)
Create<TModel,TParentModel>(String, Func<TParentModel,IList<TModel>>, Action<TParentModel,IList<TModel>>, Func<TModel,String>, Action<TModel,String>)

Create<TModel,TParentModel>(String, Func<TParentModel,String,TModel>, Action<TParentModel,String,TModel>)

public static Microsoft.Azure.Commands.Common.Strategies.NestedResourceStrategy<TModel,TParentModel> Create<TModel,TParentModel> (string provider, Func<TParentModel,string,TModel> get, Action<TParentModel,string,TModel> createOrUpdate) where TModel : class where TParentModel : class;
static member Create : string * Func<'ParentModel, string, 'Model (requires 'ParentModel : null and 'Model : null)> * Action<'ParentModel, string, 'Model (requires 'ParentModel : null and 'Model : null)> -> Microsoft.Azure.Commands.Common.Strategies.NestedResourceStrategy<'Model, 'ParentModel (requires 'Model : null and 'ParentModel : null)> (requires 'Model : null and 'ParentModel : null)
Public Shared Function Create(Of TModel As Class, TParentModel As Class) (provider As String, get As Func(Of TParentModel, String, TModel), createOrUpdate As Action(Of TParentModel, String, TModel)) As NestedResourceStrategy(Of TModel, TParentModel)

Type Parameters

TModel
TParentModel

Parameters

provider
String
get
Func<TParentModel,String,TModel>
createOrUpdate
Action<TParentModel,String,TModel>

Returns

Applies to

Create<TModel,TParentModel>(String, Func<TParentModel,IList<TModel>>, Action<TParentModel,IList<TModel>>, Func<TModel,String>, Action<TModel,String>)

public static Microsoft.Azure.Commands.Common.Strategies.NestedResourceStrategy<TModel,TParentModel> Create<TModel,TParentModel> (string provider, Func<TParentModel,System.Collections.Generic.IList<TModel>> getList, Action<TParentModel,System.Collections.Generic.IList<TModel>> setList, Func<TModel,string> getName, Action<TModel,string> setName) where TModel : class where TParentModel : class;
static member Create : string * Func<'ParentModel, System.Collections.Generic.IList<'Model> (requires 'ParentModel : null)> * Action<'ParentModel, System.Collections.Generic.IList<'Model> (requires 'ParentModel : null)> * Func<'Model, string (requires 'Model : null)> * Action<'Model, string (requires 'Model : null)> -> Microsoft.Azure.Commands.Common.Strategies.NestedResourceStrategy<'Model, 'ParentModel (requires 'Model : null and 'ParentModel : null)> (requires 'Model : null and 'ParentModel : null)
Public Shared Function Create(Of TModel As Class, TParentModel As Class) (provider As String, getList As Func(Of TParentModel, IList(Of TModel)), setList As Action(Of TParentModel, IList(Of TModel)), getName As Func(Of TModel, String), setName As Action(Of TModel, String)) As NestedResourceStrategy(Of TModel, TParentModel)

Type Parameters

TModel
TParentModel

Parameters

provider
String
getList
Func<TParentModel,IList<TModel>>
setList
Action<TParentModel,IList<TModel>>
getName
Func<TModel,String>
setName
Action<TModel,String>

Returns

Applies to