DateTimeAttributeMetadata.SourceTypeMask Property
Applies To: Dynamics CRM 2015
Gets the bitmask value that describes the sources of data used in a calculated attribute or whether the data sources are invalid.
Namespace: Microsoft.Xrm.Sdk.Metadata
Assembly: Microsoft.Xrm.Sdk (in Microsoft.Xrm.Sdk.dll)
Syntax
[DataMemberAttribute(Order = 70)]
public Nullable<int> SourceTypeMask { get; internal set; }
public:
[DataMemberAttribute(Order = 70)]
property Nullable<int> SourceTypeMask {
Nullable<int> get();
internal: void set(Nullable<int> value);
}
[<DataMemberAttribute(Order = 70)>]
member SourceTypeMask : Nullable<int> with get, internal set
<DataMemberAttribute(Order := 70)>
Public Property SourceTypeMask As Nullable(Of Integer)
Get
Friend Set
End Property
Property Value
Type: System.Nullable<Int32>
Type: Nullable<Int32>
The value that indicates the source of data for a calculated or rollup attribute.
Remarks
The following table contains the valid values for this attribute.
Value |
Description |
---|---|
0 |
Undefined: The default value for simple and rollup attributes. |
1 |
Simple: The calculated attribute refers to an attribute in the same record. |
2 |
Related: The calculated attribute refers to an attribute in a related record. |
4 |
Logical: The calculated attribute refers to an attribute in the same record that is actually stored in a different database table. More information:Logical attributes. |
8 |
Calculated: The calculated attribute refers to another calculated attribute. |
16 |
Rollup: The calculated attribute refers a rollup attribute. |
32 |
Invalid: The calculated or rollup attribute is invalid. Typically this would be where a field refers to an attribute that no longer exists. |
The SourceTypeMasks enumeration is useful when performing bitwise operations to check whether specific values are present in this bitmask value.
See Also
DateTimeAttributeMetadata Class
Microsoft.Xrm.Sdk.Metadata Namespace
Calculated and rollup attributes
SourceTypeMasks enumeration
Logical attributes
Return to top
© 2016 Microsoft. All rights reserved. Copyright