ResourceConfigExtensions.CreateResourceConfig 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
CreateResourceConfig<TModel>(ResourceStrategy<TModel>, IResourceConfig, String, Func<IEngine,TModel>)
public static Microsoft.Azure.Commands.Common.Strategies.ResourceConfig<TModel> CreateResourceConfig<TModel> (this Microsoft.Azure.Commands.Common.Strategies.ResourceStrategy<TModel> strategy, Microsoft.Azure.Commands.Common.Strategies.IResourceConfig resourceGroup, string name, Func<Microsoft.Azure.Commands.Common.Strategies.IEngine,TModel> createModel = default) where TModel : class, new();
static member CreateResourceConfig : Microsoft.Azure.Commands.Common.Strategies.ResourceStrategy<'Model (requires 'Model : null and 'Model : (new : unit -> 'Model))> * Microsoft.Azure.Commands.Common.Strategies.IResourceConfig * string * Func<Microsoft.Azure.Commands.Common.Strategies.IEngine, 'Model (requires 'Model : null and 'Model : (new : unit -> 'Model))> -> Microsoft.Azure.Commands.Common.Strategies.ResourceConfig<'Model (requires 'Model : null and 'Model : (new : unit -> 'Model))> (requires 'Model : null and 'Model : (new : unit -> 'Model))
<Extension()>
Public Function CreateResourceConfig(Of TModel As {Class, New}) (strategy As ResourceStrategy(Of TModel), resourceGroup As IResourceConfig, name As String, Optional createModel As Func(Of IEngine, TModel) = Nothing) As ResourceConfig(Of TModel)
Type Parameters
- TModel
Parameters
- strategy
- ResourceStrategy<TModel>
- resourceGroup
- IResourceConfig
- name
- String
Returns
Applies to
CreateResourceConfig<TModel>(ResourceStrategy<TModel>, IResourceConfig, String, Func<IEngine,TModel>, IEnumerable<IEntityConfig>)
public static Microsoft.Azure.Commands.Common.Strategies.ResourceConfig<TModel> CreateResourceConfig<TModel> (this Microsoft.Azure.Commands.Common.Strategies.ResourceStrategy<TModel> strategy, Microsoft.Azure.Commands.Common.Strategies.IResourceConfig resourceGroup, string name, Func<Microsoft.Azure.Commands.Common.Strategies.IEngine,TModel> createModel, System.Collections.Generic.IEnumerable<Microsoft.Azure.Commands.Common.Strategies.IEntityConfig> dependencies) where TModel : class;
static member CreateResourceConfig : Microsoft.Azure.Commands.Common.Strategies.ResourceStrategy<'Model (requires 'Model : null)> * Microsoft.Azure.Commands.Common.Strategies.IResourceConfig * string * Func<Microsoft.Azure.Commands.Common.Strategies.IEngine, 'Model (requires 'Model : null)> * seq<Microsoft.Azure.Commands.Common.Strategies.IEntityConfig> -> Microsoft.Azure.Commands.Common.Strategies.ResourceConfig<'Model (requires 'Model : null)> (requires 'Model : null)
<Extension()>
Public Function CreateResourceConfig(Of TModel As Class) (strategy As ResourceStrategy(Of TModel), resourceGroup As IResourceConfig, name As String, createModel As Func(Of IEngine, TModel), dependencies As IEnumerable(Of IEntityConfig)) As ResourceConfig(Of TModel)
Type Parameters
- TModel
Parameters
- strategy
- ResourceStrategy<TModel>
- resourceGroup
- IResourceConfig
- name
- String
- dependencies
- IEnumerable<IEntityConfig>