CQRS.Talk.Sample2.BasicSQRS.CheckAttributeQuery.AttributeExists C# (CSharp) Метод

AttributeExists() публичный Метод

public AttributeExists ( String attributeName ) : bool
attributeName String
Результат bool
        public bool AttributeExists(String attributeName)
        {
            // reach into storage and check
            return true;
        }
    }

Usage Example

Пример #1
0
 public void SomeOperation()
 {
     if (query.AttributeExists("DeviceName"))
     {
         command.SetAttribute("DeviceName", "Rover, Curiousity");
     }
 }