skip to Main Content

How can i get a list of services in Azure using c#?

I am trying to get a list of app services in Azure using the following , in a winforms app. string clientId = "your_client_id"; string clientSecret = "your_client_secret"; string tenantId = "your_tenant_id"; string subscriptionId = "your_subscription_id"; var credentials = SdkContext.AzureCredentialsFactory.FromServicePrincipal(clientId,…

VIEW QUESTION

MySqlConnector – Parameter in dynamic string query won't be set

@pname is the parameter set in C# code by: using (MySqlCommand dynamicQueryCommand = new MySqlCommand(dynamicQueryWithParameter, conn)) { dynamicQueryCommand.Parameters.Add("@pName", MySqlDbType.String); dynamicQueryCommand.Parameters["@pName"].Value = "John"; using (MySqlDataReader dynamicQueryReader = dynamicQueryCommand.ExecuteReader()) { string output = ""; object[] values = new object[dynamicQueryReader.FieldCount]; while (dynamicQueryReader.Read()) {…

VIEW QUESTION
Back To Top
Search