Microsoft.Protocols.TestSuites.Rdp.PtfPropUtility.GetUIntPtfProperty C# (CSharp) Method

GetUIntPtfProperty() public static method

Get a string type PTF property.
public static GetUIntPtfProperty ( ITestSite testSite, string propName, uint &propIntValue ) : bool
testSite ITestSite The test site where to get from.
propName string The property name.
propIntValue uint
return bool
        public static bool GetUIntPtfProperty(ITestSite testSite, string propName, out uint propIntValue)
        {
            bool bSucceed = false;

            string propValue = testSite.Properties[propName];
            if (propValue == null)
            {
                propIntValue = 0;
                return false;
            }
            else
            {
                bSucceed = uint.TryParse(propValue, out propIntValue);
            }

            return bSucceed;
        }