ParameterInfo.GetRealObject(StreamingContext) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
警告
This API supports obsolete formatter-based serialization. It should not be called or extended by application code.
回傳應該被反序列化的真實物件,而非序列化串流指定的物件。
public:
virtual System::Object ^ GetRealObject(System::Runtime::Serialization::StreamingContext context);
[System.Obsolete("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")]
public object GetRealObject(System.Runtime.Serialization.StreamingContext context);
public object GetRealObject(System.Runtime.Serialization.StreamingContext context);
[System.Security.SecurityCritical]
public object GetRealObject(System.Runtime.Serialization.StreamingContext context);
[<System.Obsolete("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")>]
abstract member GetRealObject : System.Runtime.Serialization.StreamingContext -> obj
override this.GetRealObject : System.Runtime.Serialization.StreamingContext -> obj
abstract member GetRealObject : System.Runtime.Serialization.StreamingContext -> obj
override this.GetRealObject : System.Runtime.Serialization.StreamingContext -> obj
[<System.Security.SecurityCritical>]
abstract member GetRealObject : System.Runtime.Serialization.StreamingContext -> obj
override this.GetRealObject : System.Runtime.Serialization.StreamingContext -> obj
Public Function GetRealObject (context As StreamingContext) As Object
參數
- context
- StreamingContext
當前物件被反序列化的序列化串流。
傳回
就是實際被放入圖表中的物件。
實作
- 屬性
例外狀況
該參數在其關聯成員參數列表中的位置,對於該成員的類型來說並不適用。
備註
這個方法實現了該 IObjectReference.GetRealObject 方法。