INSCoding Interfaccia

Definizione

Questa interfaccia rappresenta il protocollo NSCodingObjective-C .

[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
Derivato
Attributi
Implementazioni

Commenti

Una classe che implementa questa interfaccia (e sottoclassi NSObject) verrà esportata in Objective-C come implementazione del protocollo Objective-C rappresentata da questa interfaccia.

Una classe può anche implementare membri di questa interfaccia per implementare membri dal protocollo.

Proprietà

Nome Descrizione
Handle

Handle (puntatore) alla rappresentazione dell'oggetto non gestito.

(Ereditato da INativeObject)

Metodi

Nome Descrizione
CreateInstance<T>(NSCoder)

Questa interfaccia rappresenta il protocollo NSCodingObjective-C .

EncodeTo(NSCoder)

Codifica lo stato dell'oggetto usando il codificatore fornito.

Metodi di estensione

Nome Descrizione
GetHandle(INativeObject)

Questa interfaccia rappresenta il protocollo NSCodingObjective-C .

GetNonNullHandle(INativeObject, String)

Questa interfaccia rappresenta il protocollo NSCodingObjective-C .

Si applica a