ConstantAttribute
Description
- Derived from
-
Attribute abstract
The annotated property or method (when passed the same arguments) will return the same object reference or value throughout the lifetime of the object.
A default value (for example null
) may be returned when the object has not been initialized yet or if the object has already been disposed. Otherwise, the same value will be returned. In consequence, constant properties are thread-safe once initialization has finished, until disposal has begun.
Simple objects usually do not have a dedicated mechanism for initialization and disposal, then initialization is performed by the constructor and disposal is performed implicitly when the object is deleted because it is no longer referenced. In these cases, constant properties are always thread-safe.
Even if a constant member returns the same object, the object’s state may still vary over time. For example, a list or set may contain different elements at different points in time.
Usages
ApplicationWindowFactory.All property
BuildAction.All property
ByteBuffer.Capacity property
ByteBuffer.IsRaw property
CharacterEncoding.EncodeCountRange property
CharacterEncoding.EncodeReplacement property
CharacterEncoding.EncodeReplacementCount property
ColorCube.Size property
ColorSwizzle.Channels property
ConfigExpression.IsCall property
ConfigExpression.IsExpressionTypeConstant property
ConfigExpression.Precedence property
CxAttribute.Type property
CxCase.Value property
CxCodeUnit.Comment property
CxCodeUnit.Declaration property
CxCodeUnit.Namespace property
CxCodeUnit.Usings property
CxContractCompare.Bound property
CxContractCompare.IsGreater property
CxContractCompare.IsInclusive property
CxContractExpressionBinary.Left property
CxContractExpressionBinary.Op property
CxContractExpressionBinary.Right property
CxContractExpressionLiteral.Value property
CxContractInterval.Maximum property
CxContractInterval.Minimum property
CxContractSimple.Keyword property
CxDeclaration.AsType method
CxDeclarationEnum.Items property
CxDeclarationType.Constructors property
CxDeclarationType.DefaultConstructor property
CxDeclarationType.MethodGroups property
CxDeclarationType.Regions property
CxDeclarationType.Semantic property
CxExpression.Precedence property
CxExpressionBinary.IsRightAssociative property
CxExpressionBinary.Left property
CxExpressionBinary.Right property
CxExpressionCall.Arguments property
CxExpressionIf.Condition property
CxExpressionIf.ExpressionFalse property
CxExpressionIf.ExpressionTrue property
CxExpressionIndex.Index property
CxExpressionIndex.Target property
CxExpressionMember.Name property
CxExpressionMember.Target property
CxExpressionNew.Arguments property
CxExpressionNew.IsArrayCreation property
CxExpressionNew.IsObjectCreation property
CxExpressionNew.Length property
CxGroup.Nodes property
CxInspection.Flags property
CxInspection.Identifier property
CxLiteral.Type property
CxLiteralChar.ValueEscaped property
CxLiteralSimple.Keyword property
CxLiteralString.ValueEscaped property
CxMemberConstructor.Body property
CxMemberMethod.Body property
CxMemberMethod.Op property
CxMemberProperty.Getter property
CxMemberProperty.Semantic property
CxMemberProperty.Setter property
CxNode.CanHaveParent property
CxParameter.IsThis property
CxRegion.Members property
CxRegion.Name property
CxStatementCode.Code property
CxStatementCode.Identifier property
CxStatementComment.Comment property
CxStatementComment.Semantic property
CxStatementDo.Body property
CxStatementFor.Condition property
CxStatementFor.Increment property
CxStatementIf.StatementFalse property
CxStatementIf.StatementTrue property
CxStatementReturn.Value property
CxStatementSimple.Keyword property
CxStatementSwitch.Cases property
CxStatementThrow.Value property
CxStatementTry.CatchBody property
CxStatementTry.FinallyBody property
CxStatementTry.TryBody property
CxType.CanNew property
CxTypeArray.Depth property
CxTypeParameter.HasWhere property
CxTypeParameter.IsClass property
CxTypeParameter.IsNew property
CxTypeParameter.IsStruct property
CxTypeSimple.Keyword property
CxTypeSimple.TypeName property
CxVariable.IsDeclaration property
CxVariable.IsDefinition property
CxVariable.Value property
CxXmlDoc.Exceptions property
CxXmlDoc.Keep property
CxXmlDoc.Parameters property
CxXmlDoc.Remarks property
CxXmlDoc.SeeAlso property
CxXmlDoc.Summary property
CxXmlDoc.TypeParameters property
CxXmlDoc.Value property
CxXmlDocBody.Content property
CxXmlDocException.Content property
CxXmlDocItem.Flags property
CxXmlDocItemCode.Content property
CxXmlDocItemList.IsNumbered property
CxXmlDocItemList.Items property
CxXmlDocItemParamref.IsTypeParameter property
CxXmlDocItemSee.Reference property
CxXmlDocItemText.Content property
CxXmlDocItemText.IsCode property
CxXmlDocParagraph.Content property
CxXmlDocReference.Arguments property
CxXmlDocReference.IsMember property
CxXmlDocReference.IsMethod property
CxXmlDocSeeAlso.Reference property
CxXmlDocValue.IsMethod property
Decaling.Decals property
DirectX.SemanticNameFor method
Ellipsoid.Eccentricity property
Ellipsoid.EccentricitySqr property
Ellipsoid.FaceBounds property
Ellipsoid.Flattening property
Ellipsoid.HasInverseFlattening property
Ellipsoid.HasSemiMinorAxis property
Ellipsoid.InverseFlattening property
Ellipsoid.IsSphere property
Ellipsoid.RadiusOfAuthalicSphere property
Ellipsoid.SecondEccentricity property
Ellipsoid.SemiMajorAxis property
Ellipsoid.SemiMinorAxis property
Ellipsoid.Unit property
Graph.Links property
Graph.Nodes property
Graph.SinkNodes property
Graph.SourceNodes property
Graphics.TestStyle method
GraphicsContextFactory.DoAdapterNames method
IApplicationControl.CheckContextFactory method
IApplicationWindowFactory.HasDependencies property
IApplicationWindowFactory.Name property
IBuildAction.IsInput method
IBuildAction.Name property
IBuildAction.Order property
ICameraViewport.Camera property
ICanvasTransform.CanvasSize property
ICurve.Continuity property
ICurve.HasTangents property
ICurve.Replicate property
ICxAttributesContainer.Attributes property
ICxBaseTypesContainer.BaseTypes property
ICxContractContainer.Contract property
ICxExpressionContainer.Expression property
ICxExpressionsContainer.Expressions property
ICxFullNameContainer.FullName property
ICxIdContainer.Name property
ICxModifiersContainer.Modifiers property
ICxNameContainer.Name property
ICxNamespaceContainer.CodeUnits property
ICxNamespaceContainer.Namespaces property
ICxNamespaceContainer.Root property
ICxParametersContainer.Parameters property
ICxStatementContainer.Statement property
ICxStatementsContainer.Statements property
ICxTypeContainer.Type property
ICxTypeParametersContainer.TypeParameters property
ICxTypesContainer.Types property
ICxVariableContainer.Variable property
ICxXmlDocBodyContainer.Content property
ICxXmlDocContainer.XmlDoc property
IEntityViewMask.EntityViewMask property
IGeometry.Handedness property
IGeometry.ToGeocentric property
IGeometry.Unit property
IGeometryBuffer.Indices property
IGeometryBuffer.Instances property
IGeometryBuffer.Vertices property
IGeoObject.Name property
IGeoObject.Type property
IGeoRegistry.Name property
IGpuBuffer.ElementSize property
IGraphicsContext.BufferFactory property
IGraphicsContext.Cache property
IGraphicsContext.DeviceInfo property
IGraphicsContext.Graphics property
IGraphicsContext.IsCompatibleWith method
IGraphicsContext.IsCubemapSeamless property
IGraphicsContext.IsMultiSample property
IGraphicsContext.IsNearAtZero property
IGraphicsContext.MeshDispatcher property
IGraphicsContext.Name property
IGraphicsContext.PrimitiveRenderer property
IGraphicsContext.RenderTargetCount property
IGraphicsContext.TextureFactory property
IGraphicsContext.WorkDispatcher property
IGraphicsContextFactory.AdapterNames property
IGraphicsContextFactory.CanCreateGraphicsContext property
IGraphicsContextFactory.Name property
IGraphicsContextFactory.WindowFlags property
IMapInfo.Map property
IMapTransform.DatasetSpace property
IMapTransform.MapBounds property
IMapTransform.MapSpace property
IMaterial.BaseColor property
IMaterial.Displacement property
IMaterial.Emissive property
IMaterial.Glossiness property
IMaterial.Metalness property
IMaterial.Mutable property
IMaterial.Normal property
IMaterial.Occlusion property
IMaterial.Opacity property
IMaterial.Reflectivity property
IMaterial.Roughness property
IMaterial.Specularity property
IMaterial.Translucency property
IMaterial.Transmission property
IMaterialPart.DefaultValue property
IMesh.Geometry property
IMesh.Heightmap property
IMesh.TaskGroup property
IMesh.Tree property
IMesh.Triangulator property
IMesh.Vertices property
IMeshDispatcher.CanDispatchIndirect property
IMeshDynamic.Buffer property
IModel.Mutable property
IModelCollider.Lines property
IModelCollider.Points property
IModelCollider.Triangles property
IModelPart.Mutable property
IModelReader.FileFormat property
IModelReader.Options property
IModelTexture.IsSrgb property
IModelTextureDynamic.Content method
IModelTextureDynamic.SliceCount property
IObjectPoolBase.Name property
IPixelFontInfo.Ascent property
IPixelFontInfo.CodePointRange property
IPixelFontInfo.Compact property
IPixelFontInfo.Descent property
IPixelFontInfo.Height property
IPixelFontInfo.Whitespace property
IPixelFontInfo.Width property
IPrimitiveRenderer.CanDrawBuffer property
IPrimitiveRenderer.CanDrawPatches property
IPrimitiveRenderer.CanRestartPrimitive property
IPrimitiveRenderer.CanUseBaseVertex property
IPrimitiveRenderer.CanUseFirstInstance property
IPrivilegePredicate.Flags property
IPyramidBase.Flags property
IPyramidBase.FormatHint property
IPyramidBase.FullSize property
IPyramidBase.Levels property
IPyramidBase.OnUpdated property
IPyramidBase.TilePad property
IPyramidBase.TileSize property
IRasterTransform.Size property
IRenderEffect.Parameters property
IRenderTarget.Format property
IRenderTarget.HasColor property
IRenderTarget.HasDepth property
IRenderTarget.HasMipmaps property
IRenderTarget.IsMultiSample property
IRenderTarget.IsSrgb property
IRenderTarget.Size property
IRenderTarget.Texture property
IResource.AccessPattern property
IResource.Type property
IScene.Correction property
IScene.DatasetCache property
IScene.Entities property
IScene.Geocentric property
IScene.ImageryCache property
IScene.Terrain property
IScene.TerrainElevation property
IScene.TerrainGeometry property
IScene.TerrainHeightmap property
IScene.TerrainTransform property
IScene.TextureCache property
IScene.Views property
IScene.World property
ISceneEntityView.Owner property
ISceneObject.Order property
ISceneQuery.ResultList method
ISceneView.EntityViews property
ISceneView.Geocentric property
ISceneView.Scene property
ISceneView.ScreenLabels property
ISceneView3D.Camera property
ISceneView3D.Terrain property
ISceneView3D.Viewport property
ISerialTypeInfo.Guid property
ISerialTypeInfo.Name property
IStreamingSource.Count property
IStreamingTarget.Window property
ITexelPyramid.Format property
ITexelPyramid.Mipmaps property
ITextStream.Encoding property
ITexture.Format property
ITexture.IsSrgb property
ITexture.Mipmaps property
ITexture2D.Count property
ITexture2D.Height property
ITexture2D.Width property
ITextureCube.Size property
ITextureFactory.AvailableVideoMemory property
ITextureFactory.MaximumCount property
ITextureFactory.MaximumSize property
IWorkDispatcher.CanDispatchIndirect property
LicenceDomain.LicenceKeyEscape method
LicenceMetadata.Field method
LowLevel.Debug property
LowLevel.Is64Bit property
LowLevel.IsDebug property
LowLevel.IsPosix property
LowLevel.IsWindows property
LowLevel.MemoryTotal property
LowLevel.PlatformName property
LowLevel.ProcessorCount property
LowLevel.ProgrammingLanguageName property
MeshBuffer.MeshStructureUpdater property
MeshBuffer.VertexArrays property
MeshBuffer.VertexUpdater property
ModelReaderOptions.TextureUnresolved property
PixelFontBuilder.AutoCompact property
PixelFontBuilder.FilterIgnore property
PixelFontBuilder.KerningPairs property
PrivilegeInfo.Flags property
RenderContext.Name property
RenderEffectParameters.ChangedParent property
RenderEffectParameters.Name property
RenderEffectParameters.Parent property
RoadBuilder.Elements property
ShadowCascade.Casters property
ShadowCascade.Index property
ShadowCascade.Receivers property
ShadowCascade.ShadowFrustum property
ShadowMapping.CascadeCount property
ShadowMapping.TextureSize property
ShadowMappingResource.TextureSize property
Silhouette.Contour property
Silhouette.Edges property
Silhouette.Faces property
Silhouette.Vertices property
SpriteCache.Texture property
SpriteCache.Vertices property
Streaming.After property
Streaming.Before property
Streaming.Count property
StringEscape.IsReversible property
TerrainBufferResource.FenceCompute property
TerrainBufferResource.FenceModels property
TerrainBufferResource.FenceTerrain property
TerrainMesh.Buffer property
TerrainMesh.Distance property
TerrainMesh.Geocentric property
TerrainMesh.Gravity property
TerrainMesh.Height property
TerrainMesh.LayerBase property
TerrainMesh.LayerMaterial property
TerrainMesh.MapType property
TerrainMesh.Mesh property
TerrainMesh.Picking property
TerrainMesh.World property
TerrainView.Viewport property
TinmanModule.IsDebug property
TinmanModule.Resource1 method
TinmanModule.Resource2 method
UnitOfMeasure.IsBase property
UnitOfMeasure.IsDefault property
UnitOfMeasure.One property
UnitOfMeasure.UnitType property
VehicleTransform.Aircraft property
VehicleTransform.Ground property
VehicleTransform.Local property
VisualCache.Geometry property
VisualCache.Rasterizer property
VisualCache.Sprites property
VisualCache.Texture property
WidgetFactory.All property
XmlAttribute.Name property
XmlAttribute.Value property
XmlComment.Text property
XmlData.Text property
XmlDocument.Content property
XmlDocument.Encoding property
XmlDocument.Entities property
XmlDocument.Name property
XmlDocument.Preamble property
XmlDocument.PublicId property
XmlDocument.StandAlone property
XmlDocument.SystemId property
XmlDocument.Version property
XmlElement.Attributes property
XmlElement.Content property
XmlElement.Name property
XmlEntity.Name property
XmlInstruction.Source property
XmlInstruction.Target property
XmlLiteral.Content property
XmlNode.IsDocumentContent property
XmlNode.IsDocumentPreamble property
XmlNode.IsElementContent property
XmlNode.IsLiteralContent property
XmlNode.IsTextContent property
XmlSpace.Space property
XmlText.Value property