The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.
FieldInfo::IsPinvokeImpl Property
.NET Framework (current version)
Gets a value indicating whether the corresponding PinvokeImpl attribute is set in FieldAttributes.
Assembly: mscorlib (in mscorlib.dll)
Property Value
Type: System::Booleantrue if the PinvokeImpl attribute is set in FieldAttributes; otherwise, false.
Implements
_FieldInfo::IsPinvokeImplThe following example creates a class and displays the name, field and IsPinvokeImpl property value of the field.
using namespace System; using namespace System::Reflection; public ref class Fieldinfo_IsPinvoke { public: String^ myField; Fieldinfo_IsPinvoke() { myField = "A public field"; } }; int main() { Fieldinfo_IsPinvoke^ myObject = gcnew Fieldinfo_IsPinvoke; // Get the Type and FieldInfo. Type^ myType1 = Fieldinfo_IsPinvoke::typeid; FieldInfo^ myFieldInfo = myType1->GetField( "myField", static_cast<BindingFlags>(BindingFlags::Public | BindingFlags::Instance) ); // Display the name, field and the PInvokeImpl attribute for the field. Console::Write( "\n Name of class: {0}", myType1->FullName ); Console::Write( "\n Value of field: {0}", myFieldInfo->GetValue( myObject ) ); Console::Write( "\n IsPinvokeImpl: {0}", myFieldInfo->IsPinvokeImpl ); }
.NET Framework
Available since 1.1
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Available since 1.1
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Show: