ReadOnlyAttribute クラス

定義

ReadOnly 属性は、グレインの状態を変更しないメソッドをマークするために使用されます。

メソッドを ReadOnly としてマークすると、ランタイム システムは多数の最適化を実行できるため、アプリケーションのパフォーマンスが大幅に向上する可能性があります。

[System.AttributeUsage(System.AttributeTargets.Method)]
public sealed class ReadOnlyAttribute : Attribute
[System.AttributeUsage(System.AttributeTargets.Method)]
[Orleans.InvokableCustomInitializer("AddInvokeMethodOptions", Orleans.CodeGeneration.InvokeMethodOptions.ReadOnly)]
public sealed class ReadOnlyAttribute : Attribute
[<System.AttributeUsage(System.AttributeTargets.Method)>]
type ReadOnlyAttribute = class
    inherit Attribute
[<System.AttributeUsage(System.AttributeTargets.Method)>]
[<Orleans.InvokableCustomInitializer("AddInvokeMethodOptions", Orleans.CodeGeneration.InvokeMethodOptions.ReadOnly)>]
type ReadOnlyAttribute = class
    inherit Attribute
Public NotInheritable Class ReadOnlyAttribute
Inherits Attribute
継承
ReadOnlyAttribute
属性

コンストラクター

ReadOnlyAttribute()

ReadOnly 属性は、グレインの状態を変更しないメソッドをマークするために使用されます。

メソッドを ReadOnly としてマークすると、ランタイム システムは多数の最適化を実行できるため、アプリケーションのパフォーマンスが大幅に向上する可能性があります。

適用対象