示例#1
0
 private static bool ValidateEmbeddedImageName(string embeddedImageName, EmbeddedImageHashtable embeddedImages, ObjectType objectType, string objectName, string propertyName, ErrorContext errorContext)
 {
     if (!Validator.ValidateEmbeddedImageName(embeddedImageName, embeddedImages))
     {
         errorContext.Register(ProcessingErrorCode.rsInvalidEmbeddedImageProperty, Severity.Error, objectType, objectName, propertyName, embeddedImageName);
         return(false);
     }
     return(true);
 }
示例#2
0
 public static bool ValidateEmbeddedImageName(string embeddedImageName, EmbeddedImageHashtable embeddedImages)
 {
     if (embeddedImageName == null)
     {
         return(false);
     }
     if (embeddedImages == null)
     {
         return(false);
     }
     return(embeddedImages.ContainsKey(embeddedImageName));
 }
 public static string ValidateEmbeddedImageName(string embeddedImageName, EmbeddedImageHashtable embeddedImages, ObjectType objectType, string objectName, string propertyName, ErrorContext errorContext)
 {
     if (embeddedImageName == null)
     {
         return(null);
     }
     if (!Validator.ValidateEmbeddedImageName(embeddedImageName, embeddedImages))
     {
         errorContext.Register(ProcessingErrorCode.rsInvalidEmbeddedImageProperty, Severity.Warning, objectType, objectName, propertyName, embeddedImageName);
         return(null);
     }
     return(embeddedImageName);
 }
示例#4
0
 public static bool ValidateEmbeddedImageName(AttributeInfo embeddedImageName, EmbeddedImageHashtable embeddedImages, ObjectType objectType, string objectName, string propertyName, ErrorContext errorContext)
 {
     Global.Tracer.Assert(null != embeddedImageName);
     if (!embeddedImageName.IsExpression)
     {
         return(PublishingValidator.ValidateEmbeddedImageName(embeddedImageName.Value, embeddedImages, objectType, objectName, propertyName, errorContext));
     }
     return(true);
 }