MarshalAsAttribute.MarshalType Pole

Definicja

Określa w pełni kwalifikowaną nazwę niestandardowego marshalera.

public: System::String ^ MarshalType;
public string MarshalType;
public string? MarshalType;
[System.Runtime.InteropServices.ComVisible(true)]
public string MarshalType;
val mutable MarshalType : string
[<System.Runtime.InteropServices.ComVisible(true)>]
val mutable MarshalType : string
Public MarshalType As String 

Wartość pola

Atrybuty

Uwagi

Można użyć MarshalType pola lub MarshalAsAttribute.MarshalTypeRef określić niestandardowy typ marshalera dla parametru atrybutu, pola lub typu zwracanego. Pole MarshalType umożliwia określenie ciągu reprezentującego w pełni kwalifikowaną nazwę marshalera niestandardowego. Jest to przydatne w przypadku odwołań z opóźnieniem, ale jest mniej preferowane niż MarshalTypeRef w przypadku określania niestandardowego marshalera.

Dotyczy

Zobacz też