ReflectionContext.GetTypeForObject(Object) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得該物體在此反射上下文中類型表示。
public:
virtual System::Reflection::TypeInfo ^ GetTypeForObject(System::Object ^ value);
public virtual System.Reflection.TypeInfo GetTypeForObject(object value);
abstract member GetTypeForObject : obj -> System.Reflection.TypeInfo
override this.GetTypeForObject : obj -> System.Reflection.TypeInfo
Public Overridable Function GetTypeForObject (value As Object) As TypeInfo
參數
- value
- Object
要代表的對象。
傳回
一個代表指定物件類型的物件。