B2CGraphShell.B2CGraphClient.GetExtensions C# (CSharp) Метод

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

public GetExtensions ( string appObjectId ) : Task
appObjectId string
Результат Task
        public async Task<string> GetExtensions(string appObjectId)
        {
            return await SendGraphGetRequest("/applications/" + appObjectId + "/extensionProperties", null);
        }

Usage Example

Пример #1
0
        private static void GetExtensionAttribute(string[] args)
        {
            if (args.Length <= 1)
            {
                Console.ForegroundColor = ConsoleColor.Red;
                Console.WriteLine("Please include the b2c-extensions-app objectId.  Run B2CGraphShell Syntax to see examples.");
                Console.ForegroundColor = init;
                return;
            }

            object formatted = JsonConvert.DeserializeObject(client.GetExtensions(args[1]).Result);

            Console.ForegroundColor = ConsoleColor.White;
            Console.WriteLine(JsonConvert.SerializeObject(formatted, Formatting.Indented));
        }