示例#1
0
 public PSOperationAttributes(Operation operation)
 {
     Name = operation.Name;
     if (operation.Display != null)
     {
         Display = new PSOperationDisplayAttributes(operation.Display.Operation);
     }
 }
示例#2
0
 /// <summary>
 /// Initializes a new instance of the Operation class.
 /// </summary>
 /// <param name="name">Operation name:
 /// {provider}/{resource}/{operation}</param>
 /// <param name="display">The object that represents the
 /// operation.</param>
 public PSOperationAttributes(string name = default(string), PSOperationDisplayAttributes display = default(PSOperationDisplayAttributes))
 {
     Name    = name;
     Display = display;
 }