你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
Policy Class
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.
Protection profile details.
[System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202401.PolicyTypeConverter))]
public class Policy : Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202401.IPolicy, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IValidates
[<System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202401.PolicyTypeConverter))>]
type Policy = class
interface IPolicy
interface IJsonSerializable
interface IResource
interface IValidates
Public Class Policy
Implements IPolicy, IValidates
- Inheritance
-
Policy
- Attributes
- Implements
Constructors
Policy() |
Creates an new Policy instance. |
Properties
FriendlyName |
The FriendlyName. |
Id |
Resource Id |
Location |
Resource Location |
Name |
Resource Name |
ProviderSpecificDetailInstanceType |
Gets the class type. Overridden in derived classes. |
Type |
Resource Type |
Methods
DeserializeFromDictionary(IDictionary) |
Deserializes a IDictionary into an instance of Policy. |
DeserializeFromPSObject(PSObject) | |
FromJson(JsonNode) |
Deserializes a JsonNode into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202401.IPolicy. |
FromJsonString(String) |
Creates a new instance of Policy, deserializing the content from a json string. |
ToJson(JsonObject, SerializationMode) | |
ToJsonString() |
Serializes this instance to a json string. |
Validate(IEventListener) |
Validates that this object meets the validation criteria. |