你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
ResourceStrategy<TModel> Constructors
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
ResourceStrategy<TModel>(ResourceType, Func<IClient,GetAsyncParams, Task<TModel>>, Func<IClient,CreateOrUpdateAsyncParams<TModel>, Task<TModel>>, Property<TModel,String>, Func<TModel,Int32>, Boolean)
public ResourceStrategy (Microsoft.Azure.Commands.Common.Strategies.ResourceType type, Func<Microsoft.Azure.Commands.Common.Strategies.IClient,Microsoft.Azure.Commands.Common.Strategies.GetAsyncParams,System.Threading.Tasks.Task<TModel>> getAsync, Func<Microsoft.Azure.Commands.Common.Strategies.IClient,Microsoft.Azure.Commands.Common.Strategies.CreateOrUpdateAsyncParams<TModel>,System.Threading.Tasks.Task<TModel>> createOrUpdateAsync, Microsoft.Azure.Commands.Common.Strategies.Property<TModel,string> location, Func<TModel,int> createTime, bool compulsoryLocation);
new Microsoft.Azure.Commands.Common.Strategies.ResourceStrategy<'Model> : Microsoft.Azure.Commands.Common.Strategies.ResourceType * Func<Microsoft.Azure.Commands.Common.Strategies.IClient, Microsoft.Azure.Commands.Common.Strategies.GetAsyncParams, System.Threading.Tasks.Task<'Model>> * Func<Microsoft.Azure.Commands.Common.Strategies.IClient, Microsoft.Azure.Commands.Common.Strategies.CreateOrUpdateAsyncParams<'Model>, System.Threading.Tasks.Task<'Model>> * Microsoft.Azure.Commands.Common.Strategies.Property<'Model, string> * Func<'Model, int> * bool -> Microsoft.Azure.Commands.Common.Strategies.ResourceStrategy<'Model>
Public Sub New (type As ResourceType, getAsync As Func(Of IClient, GetAsyncParams, Task(Of TModel)), createOrUpdateAsync As Func(Of IClient, CreateOrUpdateAsyncParams(Of TModel), Task(Of TModel)), location As Property(Of TModel, String), createTime As Func(Of TModel, Integer), compulsoryLocation As Boolean)
Parameters
- type
- ResourceType
- getAsync
- Func<IClient,GetAsyncParams,Task<TModel>>
- createOrUpdateAsync
- Func<IClient,CreateOrUpdateAsyncParams<TModel>,Task<TModel>>
- compulsoryLocation
- Boolean
Applies to
ResourceStrategy<TModel>(ResourceType, Func<IClient,GetAsyncParams, Task<TModel>>, Func<IClient,CreateOrUpdateAsyncParams<TModel>, Task<TModel>>, Property<TModel,String>, Func<TModel,Int32>, Boolean, Func<TModel,Boolean>)
public ResourceStrategy (Microsoft.Azure.Commands.Common.Strategies.ResourceType type, Func<Microsoft.Azure.Commands.Common.Strategies.IClient,Microsoft.Azure.Commands.Common.Strategies.GetAsyncParams,System.Threading.Tasks.Task<TModel>> getAsync, Func<Microsoft.Azure.Commands.Common.Strategies.IClient,Microsoft.Azure.Commands.Common.Strategies.CreateOrUpdateAsyncParams<TModel>,System.Threading.Tasks.Task<TModel>> createOrUpdateAsync, Microsoft.Azure.Commands.Common.Strategies.Property<TModel,string> location, Func<TModel,int> createTime, bool compulsoryLocation, Func<TModel,bool> evaluatePreexistingConfiguration = default);
new Microsoft.Azure.Commands.Common.Strategies.ResourceStrategy<'Model> : Microsoft.Azure.Commands.Common.Strategies.ResourceType * Func<Microsoft.Azure.Commands.Common.Strategies.IClient, Microsoft.Azure.Commands.Common.Strategies.GetAsyncParams, System.Threading.Tasks.Task<'Model>> * Func<Microsoft.Azure.Commands.Common.Strategies.IClient, Microsoft.Azure.Commands.Common.Strategies.CreateOrUpdateAsyncParams<'Model>, System.Threading.Tasks.Task<'Model>> * Microsoft.Azure.Commands.Common.Strategies.Property<'Model, string> * Func<'Model, int> * bool * Func<'Model, bool> -> Microsoft.Azure.Commands.Common.Strategies.ResourceStrategy<'Model>
Public Sub New (type As ResourceType, getAsync As Func(Of IClient, GetAsyncParams, Task(Of TModel)), createOrUpdateAsync As Func(Of IClient, CreateOrUpdateAsyncParams(Of TModel), Task(Of TModel)), location As Property(Of TModel, String), createTime As Func(Of TModel, Integer), compulsoryLocation As Boolean, Optional evaluatePreexistingConfiguration As Func(Of TModel, Boolean) = Nothing)
Parameters
- type
- ResourceType
- getAsync
- Func<IClient,GetAsyncParams,Task<TModel>>
- createOrUpdateAsync
- Func<IClient,CreateOrUpdateAsyncParams<TModel>,Task<TModel>>
- compulsoryLocation
- Boolean