INSDiscardableContent Interface
Definition
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.
Interface for a class that can save memory by discarding some of its subcomponents when they are not in use.
[Foundation.Protocol(Name="NSDiscardableContent", WrapperType=typeof(Foundation.NSDiscardableContentWrapper))]
[Foundation.ProtocolMember(IsProperty=false, IsRequired=true, IsStatic=false, Name="BeginContentAccess", ReturnType=typeof(System.Boolean), Selector="beginContentAccess")]
[Foundation.ProtocolMember(IsProperty=false, IsRequired=true, IsStatic=false, Name="EndContentAccess", Selector="endContentAccess")]
[Foundation.ProtocolMember(IsProperty=false, IsRequired=true, IsStatic=false, Name="DiscardContentIfPossible", Selector="discardContentIfPossible")]
[Foundation.ProtocolMember(ArgumentSemantic=ObjCRuntime.ArgumentSemantic.None, GetterSelector="isContentDiscarded", IsProperty=true, IsRequired=true, IsStatic=false, Name="IsContentDiscarded", PropertyType=typeof(System.Boolean), Selector="isContentDiscarded")]
public interface INSDiscardableContent : IDisposable, ObjCRuntime.INativeObject
[<Foundation.Protocol(Name="NSDiscardableContent", WrapperType=typeof(Foundation.NSDiscardableContentWrapper))>]
[<Foundation.ProtocolMember(IsProperty=false, IsRequired=true, IsStatic=false, Name="BeginContentAccess", ReturnType=typeof(System.Boolean), Selector="beginContentAccess")>]
[<Foundation.ProtocolMember(IsProperty=false, IsRequired=true, IsStatic=false, Name="EndContentAccess", Selector="endContentAccess")>]
[<Foundation.ProtocolMember(IsProperty=false, IsRequired=true, IsStatic=false, Name="DiscardContentIfPossible", Selector="discardContentIfPossible")>]
[<Foundation.ProtocolMember(ArgumentSemantic=ObjCRuntime.ArgumentSemantic.None, GetterSelector="isContentDiscarded", IsProperty=true, IsRequired=true, IsStatic=false, Name="IsContentDiscarded", PropertyType=typeof(System.Boolean), Selector="isContentDiscarded")>]
type INSDiscardableContent = interface
interface INativeObject
interface IDisposable
- Derived
- Attributes
- Implements
Properties
| Name | Description |
|---|---|
| Handle |
Handle (pointer) to the unmanaged object representation. (Inherited from INativeObject) |
| IsContentDiscarded |
Gets a Boolean value that tells whether the content has been discarded. |
Methods
| Name | Description |
|---|---|
| BeginContentAccess() |
Requests access to the content, and returns |
| DiscardContentIfPossible() |
Discards the content if it is not being accessed. |
| EndContentAccess() |
Indicates that access to the content is no longer needed. |
Extension Methods
| Name | Description |
|---|---|
| GetHandle(INativeObject) | |
| GetNonNullHandle(INativeObject, String) | |