共用方式為


ArmCustomerInsightsModelFactory.PropertyDefinition Method

Definition

Initializes a new instance of PropertyDefinition.

public static Azure.ResourceManager.CustomerInsights.Models.PropertyDefinition PropertyDefinition (string arrayValueSeparator = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.CustomerInsights.Models.ProfileEnumValidValuesFormat> enumValidValues = default, string fieldName = default, string fieldType = default, bool? isArray = default, bool? isEnum = default, bool? isFlagEnum = default, bool? isImage = default, bool? isLocalizedString = default, bool? isName = default, bool? isRequired = default, string propertyId = default, string schemaItemPropLink = default, int? maxLength = default, bool? isAvailableInGraph = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.CustomerInsights.Models.DataSourcePrecedence> dataSourcePrecedenceRules = default);
static member PropertyDefinition : string * seq<Azure.ResourceManager.CustomerInsights.Models.ProfileEnumValidValuesFormat> * string * string * Nullable<bool> * Nullable<bool> * Nullable<bool> * Nullable<bool> * Nullable<bool> * Nullable<bool> * Nullable<bool> * string * string * Nullable<int> * Nullable<bool> * seq<Azure.ResourceManager.CustomerInsights.Models.DataSourcePrecedence> -> Azure.ResourceManager.CustomerInsights.Models.PropertyDefinition
Public Shared Function PropertyDefinition (Optional arrayValueSeparator As String = Nothing, Optional enumValidValues As IEnumerable(Of ProfileEnumValidValuesFormat) = Nothing, Optional fieldName As String = Nothing, Optional fieldType As String = Nothing, Optional isArray As Nullable(Of Boolean) = Nothing, Optional isEnum As Nullable(Of Boolean) = Nothing, Optional isFlagEnum As Nullable(Of Boolean) = Nothing, Optional isImage As Nullable(Of Boolean) = Nothing, Optional isLocalizedString As Nullable(Of Boolean) = Nothing, Optional isName As Nullable(Of Boolean) = Nothing, Optional isRequired As Nullable(Of Boolean) = Nothing, Optional propertyId As String = Nothing, Optional schemaItemPropLink As String = Nothing, Optional maxLength As Nullable(Of Integer) = Nothing, Optional isAvailableInGraph As Nullable(Of Boolean) = Nothing, Optional dataSourcePrecedenceRules As IEnumerable(Of DataSourcePrecedence) = Nothing) As PropertyDefinition

Parameters

arrayValueSeparator
String

Array value separator for properties with isArray set.

enumValidValues
IEnumerable<ProfileEnumValidValuesFormat>

Describes valid values for an enum property.

fieldName
String

Name of the property.

fieldType
String

Type of the property.

isArray
Nullable<Boolean>

Indicates if the property is actually an array of the fieldType above on the data api.

isEnum
Nullable<Boolean>

Indicates if the property is an enum.

isFlagEnum
Nullable<Boolean>

Indicates if the property is an flag enum.

isImage
Nullable<Boolean>

Whether the property is an Image.

isLocalizedString
Nullable<Boolean>

Whether the property is a localized string.

isName
Nullable<Boolean>

Whether the property is a name or a part of name.

isRequired
Nullable<Boolean>

Whether property value is required on instances, IsRequired field only for Interaction. Profile Instance will not check for required field.

propertyId
String

The ID associated with the property.

schemaItemPropLink
String

URL encoded schema.org item prop link for the property.

maxLength
Nullable<Int32>

Max length of string. Used only if type is string.

isAvailableInGraph
Nullable<Boolean>

Whether property is available in graph or not.

dataSourcePrecedenceRules
IEnumerable<DataSourcePrecedence>

This is specific to interactions modeled as activities. Data sources are used to determine where data is stored and also in precedence rules.

Returns

A new PropertyDefinition instance for mocking.

Applies to