Share via


INSCoding Interface

Definition

This interface represents the Objective-C protocol NSCoding.

[Foundation.Protocol(Name="NSCoding", WrapperType=typeof(Foundation.NSCodingWrapper))]
[Foundation.ProtocolMember(IsProperty=false, IsRequired=true, IsStatic=false, Name="EncodeTo", ParameterByRef=new System.Boolean[] { false }, ParameterType=new System.Type[] { typeof(Foundation.NSCoder) }, Selector="encodeWithCoder:")]
public interface INSCoding : IDisposable, ObjCRuntime.INativeObject
[<Foundation.Protocol(Name="NSCoding", WrapperType=typeof(Foundation.NSCodingWrapper))>]
[<Foundation.ProtocolMember(IsProperty=false, IsRequired=true, IsStatic=false, Name="EncodeTo", ParameterByRef=new System.Boolean[] { false }, ParameterType=new System.Type[] { typeof(Foundation.NSCoder) }, Selector="encodeWithCoder:")>]
type INSCoding = interface
    interface INativeObject
    interface IDisposable
Derived
Attributes
Implements

Remarks

A class that implements this interface (and subclasses NSObject) will be exported to Objective-C as implementing the Objective-C protocol this interface represents.

A class may also implement members from this interface to implement members from the protocol.

Properties

Name Description
Handle

Handle (pointer) to the unmanaged object representation.

(Inherited from INativeObject)

Methods

Name Description
CreateInstance<T>(NSCoder)
EncodeTo(NSCoder)

Encodes the state of the object using the provided encoder.

Extension Methods

Name Description
GetHandle(INativeObject)
GetNonNullHandle(INativeObject, String)

Applies to