Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

ImmutableAttribute Class

Definition

Namespace:
Orleans.Concurrency
Assembly:
Orleans.dll
Assembly:
Orleans.Core.Abstractions.dll
Package:
Microsoft.Orleans.Core v1.5.10
Package:
Microsoft.Orleans.Core.Abstractions v2.4.5
Package:
Microsoft.Orleans.Core.Abstractions v3.6.5
Source:
GrainAttributeConcurrency.cs

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.

The Immutable attribute indicates that instances of the marked class or struct are never modified after they are created.

[System.AttributeUsage(System.AttributeTargets.Class | System.AttributeTargets.Struct)]
public sealed class ImmutableAttribute : Attribute
[<System.AttributeUsage(System.AttributeTargets.Class | System.AttributeTargets.Struct)>]
type ImmutableAttribute = class
 inherit Attribute
Public NotInheritable Class ImmutableAttribute
Inherits Attribute
Inheritance
ImmutableAttribute
Attributes

Remarks

Note that this implies that sub-objects are also not modified after the instance is created.

Constructors

Name Description
ImmutableAttribute()

Applies to