你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
NestedResourceStrategy.Create Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
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
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