C# Класс PowerStudio.DebugEngine.DebugProperty

Наследование: IDebugProperty2
Показать файл Открыть проект

Открытые методы

Метод Описание
EnumChildren ( enum_DEBUGPROP_INFO_FLAGS dwFields, uint dwRadix, System.Guid &guidFilter, enum_DBG_ATTRIB_FLAGS dwAttribFilter, string pszNameFilter, uint dwTimeout, IEnumDebugPropertyInfo2 &ppEnum ) : int

Retrieves a list of the children of the property.

GetDerivedMostProperty ( IDebugProperty2 &ppDerivedMost ) : int

Gets the derived-most property of a property.

For example, if this property describes an object that implements ClassRoot but which is actually an instantiation of ClassDerived that is derived from ClassRoot, then this method returns an IDebugProperty2 object describing the ClassDerived object.

GetExtendedInfo ( System.Guid &guidExtendedInfo, object &pExtendedInfo ) : int

Gets extended information for the property.

This method exists for the purpose of retrieving information that does not lend itself to being retrieved by calling the IDebugProperty2::GetPropertyInfo method. The following GUIDs are typically recognized by this method (the GUID values are specified for C# since the name is not available in any assembly). Additional GUIDs can be created for internal use. Name GUID Description guidDocument {3f98de84-fee9-11d0-b47f-00a0244a1dd2} Returns an IUnknown interface to the document. Typically, the IDebugDocumentText2 interface can be obtained from this IUnknown interface. guidCodeContext {e2fc65e-56ce-11d1-b528-00aax004a8797} Returns an IUnknown interface to the document context. Typically, the IDebugDocumentContext2 interface can be obtained from this IUnknown interface. guidCustomViewerSupported {d9c9da31-ffbe-4eeb-9186-23121e3c088c} Returns a string containing the CLSID of a custom viewer, typically implemented by an expression evaluator. guidExtendedInfoSlot {6df235ad-82c6-4292-9c97-7389770bc42f} Returns a 32-bit number representing the desired slot number if this property represents a managed code local address. guidExtendedInfoSignature {b5fb6d46-f805-417f-96a3-8ba737073ffd} Returns a string containing the signature of the variable associated with the property object.

GetMemoryBytes ( IDebugMemoryBytes2 &ppMemoryBytes ) : int

Gets the memory bytes that compose the value of a property.

GetMemoryContext ( IDebugMemoryContext2 &ppMemory ) : int

Gets the memory context of the property value.

GetParent ( IDebugProperty2 &ppParent ) : int

Gets the parent property of a property.

GetPropertyInfo ( enum_DEBUGPROP_INFO_FLAGS dwFields, uint dwRadix, uint dwTimeout, IDebugReference2 rgpArgs, uint dwArgCount, DEBUG_PROPERTY_INFO pPropertyInfo ) : int

Gets the DEBUG_PROPERTY_INFO structure that describes a property.

GetReference ( IDebugReference2 &ppReference ) : int

Returns a reference to the property's value.

GetSize ( uint &pdwSize ) : int

Gets the size, in bytes, of the property value.

SetValueAsReference ( IDebugReference2 rgpArgs, uint dwArgCount, IDebugReference2 pValue, uint dwTimeout ) : int

Sets the value of this property to the value of the given reference.

SetValueAsString ( string pszValue, uint dwRadix, uint dwTimeout ) : int

Sets the value of a property from a given string.

Описание методов

EnumChildren() публичный Метод

Retrieves a list of the children of the property.
public EnumChildren ( enum_DEBUGPROP_INFO_FLAGS dwFields, uint dwRadix, System.Guid &guidFilter, enum_DBG_ATTRIB_FLAGS dwAttribFilter, string pszNameFilter, uint dwTimeout, IEnumDebugPropertyInfo2 &ppEnum ) : int
dwFields enum_DEBUGPROP_INFO_FLAGS A combination of flags from the DEBUGPROP_INFO_FLAGS enumeration that specifies which fields in the enumerated DEBUG_PROPERTY_INFO structures are to be filled in.
dwRadix uint Specifies the radix to be used in formatting any numerical information.
guidFilter System.Guid GUID of the filter used with the dwAttribFilter and pszNameFilter parameters to select which DEBUG_PROPERTY_INFO children are to be enumerated. For example, guidFilterLocals filters for local variables.
dwAttribFilter enum_DBG_ATTRIB_FLAGS A combination of flags from the DBG_ATTRIB_FLAGS enumeration that specifies what type of objects to enumerate, for example DBG_ATTRIB_METHOD for all methods that might be children of this property. Used in combination with the guidFilter and pszNameFilter parameters.
pszNameFilter string The name of the filter used with the guidFilter and dwAttribFilter parameters to select which DEBUG_PROPERTY_INFO children are to be enumerated. For example, setting this parameter to "MyX" filters for all children with the name "MyX."
dwTimeout uint Specifies the maximum time, in milliseconds, to wait before returning from this method. Use INFINITE to wait indefinitely.
ppEnum IEnumDebugPropertyInfo2 Returns an IEnumDebugPropertyInfo2 object containing a list of the child properties.
Результат int

GetDerivedMostProperty() публичный Метод

Gets the derived-most property of a property.
For example, if this property describes an object that implements ClassRoot but which is actually an instantiation of ClassDerived that is derived from ClassRoot, then this method returns an IDebugProperty2 object describing the ClassDerived object.
public GetDerivedMostProperty ( IDebugProperty2 &ppDerivedMost ) : int
ppDerivedMost IDebugProperty2 Returns an IDebugProperty2 object that represents the derived-most property.
Результат int

GetExtendedInfo() публичный Метод

Gets extended information for the property.
This method exists for the purpose of retrieving information that does not lend itself to being retrieved by calling the IDebugProperty2::GetPropertyInfo method. The following GUIDs are typically recognized by this method (the GUID values are specified for C# since the name is not available in any assembly). Additional GUIDs can be created for internal use. Name GUID Description guidDocument {3f98de84-fee9-11d0-b47f-00a0244a1dd2} Returns an IUnknown interface to the document. Typically, the IDebugDocumentText2 interface can be obtained from this IUnknown interface. guidCodeContext {e2fc65e-56ce-11d1-b528-00aax004a8797} Returns an IUnknown interface to the document context. Typically, the IDebugDocumentContext2 interface can be obtained from this IUnknown interface. guidCustomViewerSupported {d9c9da31-ffbe-4eeb-9186-23121e3c088c} Returns a string containing the CLSID of a custom viewer, typically implemented by an expression evaluator. guidExtendedInfoSlot {6df235ad-82c6-4292-9c97-7389770bc42f} Returns a 32-bit number representing the desired slot number if this property represents a managed code local address. guidExtendedInfoSignature {b5fb6d46-f805-417f-96a3-8ba737073ffd} Returns a string containing the signature of the variable associated with the property object.
public GetExtendedInfo ( System.Guid &guidExtendedInfo, object &pExtendedInfo ) : int
guidExtendedInfo System.Guid GUID that determines the type of extended information to be retrieved. See Remarks for details.
pExtendedInfo object Returns a VARIANT (C++) or object (C#) that can be used to retrieve the extended property information. For example, this parameter might return an IUnknown interface that can be queried for an IDebugDocumentText2 interface. See Remarks for details.
Результат int

GetMemoryBytes() публичный Метод

Gets the memory bytes that compose the value of a property.
public GetMemoryBytes ( IDebugMemoryBytes2 &ppMemoryBytes ) : int
ppMemoryBytes IDebugMemoryBytes2 Returns an IDebugMemoryBytes2 object that can be used to retrieve the memory that contains the value of the property.
Результат int

GetMemoryContext() публичный Метод

Gets the memory context of the property value.
public GetMemoryContext ( IDebugMemoryContext2 &ppMemory ) : int
ppMemory IDebugMemoryContext2 Returns the IDebugMemoryContext2 object that represents the memory associated with this property.
Результат int

GetParent() публичный Метод

Gets the parent property of a property.
public GetParent ( IDebugProperty2 &ppParent ) : int
ppParent IDebugProperty2 Returns an IDebugProperty2 object that represents the parent of the property.
Результат int

GetPropertyInfo() публичный Метод

Gets the DEBUG_PROPERTY_INFO structure that describes a property.
public GetPropertyInfo ( enum_DEBUGPROP_INFO_FLAGS dwFields, uint dwRadix, uint dwTimeout, IDebugReference2 rgpArgs, uint dwArgCount, DEBUG_PROPERTY_INFO pPropertyInfo ) : int
dwFields enum_DEBUGPROP_INFO_FLAGS A combination of values from the DEBUGPROP_INFO_FLAGS enumeration that specifies which fields are to be filled out in the pPropertyInfo structure.
dwRadix uint Radix to be used in formatting any numerical information.
dwTimeout uint Specifies the maximum time, in milliseconds, to wait before returning from this method. Use INFINITE to wait indefinitely.
rgpArgs IDebugReference2 Reserved for future use; set to a null value.
dwArgCount uint Reserved for future use; set to zero.
pPropertyInfo DEBUG_PROPERTY_INFO A DEBUG_PROPERTY_INFO structure that is filled in with the description of the property.
Результат int

GetReference() публичный Метод

Returns a reference to the property's value.
public GetReference ( IDebugReference2 &ppReference ) : int
ppReference IDebugReference2 Returns an IDebugReference2 object representing a reference to the property's value.
Результат int

GetSize() публичный Метод

Gets the size, in bytes, of the property value.
public GetSize ( uint &pdwSize ) : int
pdwSize uint Returns the size, in bytes, of the property value.
Результат int

SetValueAsReference() публичный Метод

Sets the value of this property to the value of the given reference.
public SetValueAsReference ( IDebugReference2 rgpArgs, uint dwArgCount, IDebugReference2 pValue, uint dwTimeout ) : int
rgpArgs IDebugReference2 An array of arguments to pass to the managed code property setter. If the property setter does not take arguments or if this IDebugProperty2 object does not refer to such a property setter, rgpArgs should be a null value. This parameter is typically a null value.
dwArgCount uint The number of arguments in the rgpArgs array.
pValue IDebugReference2 A reference, in the form of an IDebugReference2 object, to the value to use to set this property.
dwTimeout uint How long to take to set the value, in milliseconds. A typical value is INFINITE. This affects the length of time that any possible evaluation can take.
Результат int

SetValueAsString() публичный Метод

Sets the value of a property from a given string.
public SetValueAsString ( string pszValue, uint dwRadix, uint dwTimeout ) : int
pszValue string A string containing the value to be set.
dwRadix uint A radix to be used in interpreting any numerical information. This can be 0 to attempt to determine the radix automatically.
dwTimeout uint Specifies the maximum time, in milliseconds, to wait before returning from this method. Use INFINITE to wait indefinitely.
Результат int