Forum Discussion
David_Los_23059
Nimbostratus
Jul 26, 2006Problems with an If Statement
Hello,
I have been working on a C console application and I am having problems with an if statement that is trying to check the LocalLB.EnabledStatus.
The line of code that I am using looks like
if (new_obj_members[j][k].object_status.enabled_status == PoolMember.LocalLBEnabledStatus.ENABLED_STATUS_ENABLED)
//Just using this to test
Console.Write("this is enabled");
This is giving me the error: 'PoolMember.LocalLBPoolMember' does not contain a definition for 'LocalLBEnabledStatus'
I also tried with this
if (new_obj_members[j][k].object_status.enabled_status == LocalLBEnabledStatus.ENABLED_STATUS_ENABLED)
//Just using this to test
Console.Write("this is enabled");
This is giving the error: Operator '==' cannot be applied to operands of type 'PoolMember.LocalLBEnabledStatus' and 'Pool.LocalLBEnabledStatus'