다음을 통해 공유


ProvideServiceAttributeBase.IsCacheable Property

Definition

Indicates to the shell service layer that it may cache the service. This is more of a formality for MPF provided services because MPF itself caches the service so your service creation callback is never called more than once. This will provide a slight performance improvement by eliminating a native -> managed transition on service request. If you have no compelling reason to set this to false, this should be set to true. Future versions may default this to true.

public:
 property bool IsCacheable { bool get(); void set(bool value); };
public bool IsCacheable { get; set; }
member this.IsCacheable : bool with get, set
Public Property IsCacheable As Boolean

Property Value

Applies to