public bool ItemExists(ReportingService2010SoapChannel channel, string path, string itemName)
 {
     return(channel.FindItems(new FindItemsRequest
     {
         Folder = String.Format("/{0}/{1}", assemblyName, path.TrimStart('/')),
         SearchConditions = new[]
         {
             new SearchCondition
             {
                 Condition = ConditionEnum.Equals,
                 ConditionSpecified = true,
                 Name = "Name",
                 Values = new[] { itemName }
             }
         }
     }).Items.Any());
 }
Пример #2
0
 public bool ItemExists(ReportingService2010SoapChannel channel, string path, string itemName)
 {
     return channel.FindItems(new FindItemsRequest
     {
         Folder = String.Format("/{0}/{1}", assemblyName, path.TrimStart('/')),
         SearchConditions = new[]
         {
             new SearchCondition
             {
                 Condition = ConditionEnum.Equals,
                 ConditionSpecified = true,
                 Name = "Name",
                 Values = new[] { itemName }
             }
         }
     }).Items.Any();
 }