Category "c++sharp"

How to use REST Api or CSOM in .NET 6 client app for Sharepoint on premise

In my SPA with ASP.NET Core backend, I want to create UI for uploading files that will be stored in Sharepoint 2016 hosted on premise. I was just about to use C

azure function check if message received after X minutes

I am completely new to Azure and I have a function which is triggered by a service bus queue, the message is a JSON string. Now I want to check if after 3 minut

C# Generic foreach over IEnumerable of unknown type

I'm trying to write a generic static function that takes an instance of an IEnumerable class, the name of a property of and a string separator. It will loop th

Azure.Identity.VisualStudioCredential with IIS appPoolIdentity

I'm in my way to use Always Encrypted on an existing .Net Framework 4.8 WebApi codebase. The solutions runs locally (for development) on IIS on ApplicationPoolI

How to refresh dependent column in WPF datagrid when another column is changed?

So I got a WPF datagrid which is created like this: <DataGrid x:Name="columns" Grid.Row="1" HorizontalContentAlignment="Stretch" HorizontalAlignment="Stretch

EF Core 6 with Pomelo EntityFrameworkCore MySql fails to create database

I am using EF Core 6 with Pomelo.EntityFrameworkCore.MySql and code first. I have the following code in my connection string. public sealed partial class MyDbCo

Scanning all documents in feeder and working with ImageFile

I want to scan all documents in a feeder and save each Image in a List of Images. I have the following Setup: A C# Console Application with .NET6.0 Added Refere

How do i get the access token from the reques

I'm using account linking on amazon and I've managed to configure it to send my user's acessToken by a Json. I looked in the amazon documentation and it says th

Ajax call doesn't pass object to controller

I am trying to pass a string to an IActionResult function in an asp.net core 3.1 controller. Ajax: function CreateApprover() { const input = { Plant

How do I call the injected dependency 'level' and use it as a condition in an IF statement? C#

An object reference is required for the non-static field, method, or property 'Form1.level' public Form1( int level ) { this.level = level; playtune()

C# create crosshair overlay for video game

(I know this is very bootleg) I've currently made a FORM that acts as an overlay and I'm using panels as the crosshair however whenever I try to put the panels

Instaniate objects on Raycast

So, I want the code to instantiate clone objects onto the new Raycast points if the int i<Random.Range I have a code that allows to position an object onto t

Unity fill array Gameobject from another script

I have been follow video from youtube for creating custom tabs. But in condition Iam using dynamic panel, and then in script has to fill panel to array Gameobje

I would like to pass the values that i have in my view to a action

I'm developing a school project using a html.beginform to when i click in a button i go to a diferent Action, but i need to pass the values that i have inside m

EFCore navigational properties are not mapped

I have a model Contact with three navigational properties of type Place but when I make a request in to database ids are filled but navigational properties are

C#: How to return optional ref to struct

In C# how do I write a function that may or may not return a ref to a struct? What I basically want is a return type Nullable<ref OutboxSlot> but the comp

Compare a string in if()

I'm trying to compare a string in an if(string = ""), but it's apparently not the same the string is "thisColor", it is defined by the content of a file. I trie

Azure Function App Unable to get Connection String : Value cannot be null. (Parameter 'connectionString')

I have an Azure Function with DDD Architecture. My project structure looks like this: local.settings.json file Looks like this: { "IsEncrypted": false, "Va

CORS Error in Angular App With Asp.net Core Webpi

I've been given a task to to build a web client that interacts with the following API: https://docs.openaq.org/ It should be able to send different parameters

Check if list of string contains exact part of string

I have a List of strings as follows, List<string> str = new List<string>() { "7, 31", "2, 4", "5, 6" }; My input will be something like "1, 2" or