Important: |
---|
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist. |
3/29/2010
Gets or sets the type of comparison operation.
Namespace:Microsoft.WindowsMobile.Status
Assembly:Microsoft.WindowsMobile.Status (in microsoft.windowsmobile.status.dll)
Assembly:Microsoft.WindowsMobile.Status (in microsoft.windowsmobile.status.dll)
Syntax
Example
The following example shows how to enable the Changed event to be raised when "MyValue" under "HKEY_LOCAL_MACHINE\\MyKey" changes and is greater than 50:
Copy Code | |
---|---|
RegistryState myState = new RegistryState("HKEY_LOCAL_MACHINE\\MyKey", "MyValue"); private void Form1_Load(object sender, EventArgs e) { myState.ComparisonType = StatusComparisonType.Greater; myState.ComparisonValue = 50; myState.Changed += new ChangeEventHandler(myState_Changed); } |
Thread Safety
Any public static (
Sharedin Visual Basic) members of this type are thread-safe.
Any instance members are not guaranteed to be thread-safe.