المرجع: عرض عنصر التعريف

تُعد هذه المقالة مرجعاً لبيانات viewDefinition.json الاصطناعية في تطبيقات Azure المُدارة. لمزيد من المعلومات حول تكوين طرق عرض التأليف، راجع عرض البيانات الاصطناعية للتعريف.

تعريف طريقة العرض

يعرض JSON التالي مثال على الملف viewDefinition.json لتطبيقات Azure المُدارة:

{
  "views": [
    {
      "kind": "Overview",
      "properties": {
        "header": "Welcome to your Demo Azure Managed Application",
        "description": "This Managed application with Custom Provider is for demo purposes only.",
        "commands": [
          {
            "displayName": "Ping Action",
            "path": "/customping",
            "icon": "LaunchCurrent"
          }
        ]
      }
    },
    {
      "kind": "CustomResources",
      "properties": {
        "displayName": "Users",
        "version": "1.0.0.0",
        "resourceType": "users",
        "createUIDefinition": {
          "parameters": {
            "steps": [
              {
                "name": "add",
                "label": "Add user",
                "elements": [
                  {
                    "name": "name",
                    "label": "User's Full Name",
                    "type": "Microsoft.Common.TextBox",
                    "defaultValue": "",
                    "toolTip": "Provide a full user name.",
                    "constraints": {
                      "required": true
                    }
                  },
                  {
                    "name": "location",
                    "label": "User's Location",
                    "type": "Microsoft.Common.TextBox",
                    "defaultValue": "",
                    "toolTip": "Provide a Location.",
                    "constraints": {
                      "required": true
                    }
                  }
                ]
              }
            ],
            "outputs": {
              "name": "[steps('add').name]",
              "properties": {
                "FullName": "[steps('add').name]",
                "Location": "[steps('add').location]"
              }
            }
          }
        },
        "commands": [
          {
            "displayName": "Custom Context Action",
            "path": "users/contextAction",
            "icon": "Start"
          }
        ],
        "columns": [
          {
            "key": "properties.FullName",
            "displayName": "Full Name"
          },
          {
            "key": "properties.Location",
            "displayName": "Location",
            "optional": true
          }
        ]
      }
    }
  ]
}

الخطوات التالية