IMcResourceManagerMiscellaneousResources Property
|
|
Sets and exposes persisted miscellaneous resource values as floating point numbers.
Namespace:
MediaCy.IQL.Engine
Assembly:
MediaCy.IQL.Engine (in MediaCy.IQL.Engine.dll) Version: 10.0.6912.0
SyntaxProperty MiscellaneousResources (
WhichResource As mcMiscellaneousResources
) As Double
Get
Set
Parameters
- WhichResource
- Type: MediaCy.IQL.EnginemcMiscellaneousResources
Determines which resource is being accessed or assigned, and whether
the value is exposed or supplied, respectively, as a decimal value (mcmrValueIsDecimal
flag, the default, is optional), percent of image memory (mcmrValueIsPcntImageMemory
flag) or percent of usable physical memory (mcmrValueIsPcntUsableMemory flag). On access
if the code is mcMiscellaneousResources.mcmrNone, then the return value is set to the
highest user-assigned WhichResource code that has been accessed
Property Value
Type:
Double
RemarksThis method allows miscellaneous double precision floating point values to be
stored and persisted. The values may be assigned or accessed as a decimal value (usually
representing MBytes), percentage of the maximum managed image memory,
MemoryMax(mcmtImageMemory), or as percentage of usable physical memory,
MemoryManagerInfo(mcmmiUsablePhysical).
The particular miscellaneous resource value being assigned or accessed is controlled by
the WhichResource parameter masked mcmrWhichResourceMask. Flags can be OR'ed into the
WhichResource parameter to specify that the value is being given a percentage of the
maximum image memory or as a percentage of usable physical memory; with out a flag
the resource is accessed or assigned as a decimal value.
A nmumber of WhichResource codes are predefined, and these codes have known defaults (that
is, values that are exposed without ever being assigned have a reasonable default value).
WhichResource codes that start at mcMiscellaneousResources.mcmrUserResource have no know
default. For these codes when MiscellaneousResources is accessed without any prior
assignment, then the special value of
mcResourceManagerConstants.mcrmc_lMiscResourceValueDefault is returned. The caller should
detect this special return value and substitute their own default value for the resource
value.
All assigned values are persisted in the Settings.
See Also