private static void ValidateByteArray(String propertyName, Byte[] propertyValue)
 {
     if (propertyValue.Length > c_maxByteValueSize)
     {
         throw new VssPropertyValidationException("value", CommonResources.InvalidPropertyValueSize(propertyName, typeof(Byte[]).FullName, c_maxByteValueSize));
     }
 }
 private static void ValidateStringValue(String propertyName, String propertyValue)
 {
     if (propertyValue.Length > c_maxStringValueLength)
     {
         throw new VssPropertyValidationException("value", CommonResources.InvalidPropertyValueSize(propertyName, typeof(String).FullName, c_maxStringValueLength));
     }
     ArgumentUtility.CheckStringForInvalidCharacters(propertyValue, "value", true);
 }