腾讯云
开发者社区
文档
建议反馈
控制台
登录/注册
首页
学习
活动
专区
圈层
工具
MCP广场
文章/答案/技术大牛
搜索
搜索
关闭
发布
文章
问答
(9999+)
视频
沙龙
0
回答
Configuration.GetSection
("
ConnectionStringName
").
Get
<?>
始终
为
空
、
、
、
、
var settings = Configuration .
Get
<ConnectionSetingsneeded) } {} 我可以看到
Configuration.GetSection
("Conne
浏览 5
提问于2018-07-19
得票数 1
回答已采纳
1
回答
ASP.Net核心应用中的成员资格提供程序
、
、
在这个程序集中,流转到行,它检查提供程序的名称是否不为
空
。在启动类中,我用以下方式配置sqlMembershipProvider: services.Configure<System.Web.Security.SqlMembershipProvider>(
Configuration.GetSection
浏览 32
提问于2018-07-31
得票数 3
14
回答
从.net核心中的appsettings.json获取价值
、
、
、
、
IServiceCollection services) //Here I setup to read appsettings }{} 控制器IOptions settings)
浏览 213
提问于2017-10-26
得票数 266
回答已采纳
1
回答
如何检查配置部分是否存在?
、
、
、
我正在尝试
为
我的dotnet核心项目实现一个简单的配置服务。private static IConfigurationRoot _configuration {
get
; set; }{ return default(T); var section = _<em
浏览 4
提问于2017-03-30
得票数 0
回答已采纳
1
回答
Java -
get
注释
始终
为
空
、
我刚接触注解,我有用自定义注解FXMLController注解的类,将这些类发送到工厂以从注解中获取值,但它总是
空
的~public @interface FXMLController {
浏览 17
提问于2016-08-25
得票数 1
回答已采纳
2
回答
尝试访问Asp.net核中Azure密钥库中的对象值
、
、
、
、
在azure键中有一个object值,并试图在启动类中读取该值,但该值
始终
为
null。IServiceCollection services) services.AddOptions(); r
浏览 4
提问于2019-10-10
得票数 2
回答已采纳
1
回答
对象类型IDocumentClient的实例
始终
为
null:“尚未注册类型
为
'Microsoft.Azure.Documents.IDocumentClient‘的服务”
以下是代码 var cosmosSettings=
Configuration.GetSection
(
浏览 9
提问于2019-11-26
得票数 0
回答已采纳
1
回答
ASP.NET内核中AppSettings.json中的POCO对象数组
、
、
正如预期的那样,appsettings.json文件填充了父类,此类中的电子邮件模板的子列表
始终
为
空
。 services.Configure<EmailOptions>( _
configuration.GetSection
由于某些原因,我的EmailOptions中的IEnumerable属性没有从appsettings.json反序列化到我的选项中-当我试图在我的控制器中的
浏览 1
提问于2018-01-04
得票数 11
1
回答
如何模拟或设置单元测试的值,这些值通常在启动时设置
为
静态属性?
、
、
、
有一个带有一堆静态字段的类,用于在内存中保存设置值:{ {
configuratio
浏览 0
提问于2020-10-16
得票数 0
2
回答
无法在服务中注入IOptions
、
、
我试图在我创建的服务中注入一个IOptions,它
始终
是
空
的:{ public void ConfigureServices(IServiceCollection services)
浏览 4
提问于2018-12-22
得票数 3
回答已采纳
2
回答
.NET核心3.1 ApplicationInsight IntrumentKey
空
、
、
在.net core 3.1 Blazor应用中,我的仪器密钥
始终
为
空
。Microsoft.ApplicationInsights.AspNetCore.Extensions.ApplicationInsightsServiceOptions(); aiOptions.InstrumentationKey =
Configuration.GetSection
Microsoft.ApplicationInsights.TelemetryClient telemetryClient; 现在,当我搜索t
浏览 30
提问于2020-04-29
得票数 0
4
回答
如何在.net内核中读取json文件中的复杂对象
、
、
、
、
我有一个这样的json可以在c#中读取,但它显示
为
空
。Country": null, } } services.Configure<Provinces>(
Configuration.GetSection
(&
浏览 8
提问于2019-05-30
得票数 1
1
回答
无法从appsettings.json读取详细信息
、
services.AddMvc();MySettings.cs{} TestDriveDataba
浏览 4
提问于2017-05-02
得票数 0
回答已采纳
12
回答
Configuration.GetSection
始终
返回值属性null
、
、
每次我调用
Configuration.GetSection
时,返回对象的Value属性总是
为
空
。void ConfigureServices(IServiceCollection services) services.Configure<SqliteSettings>(opts =>
Configuration.GetSection
NewDatabase {
get
; set; }
浏览 338
提问于2017-09-03
得票数 74
回答已采纳
1
回答
Get
user.Identity.GetUserId()
始终
为
空
、
我已经成功登录,但是当我访问user时,user.Identity.GetUserId()总是
为
空
。 这是我的登录码。
浏览 0
提问于2015-10-22
得票数 1
2
回答
Get
-IISAppPool属性"Status“
始终
为
空
、
、
、
当我键入
Get
-IISAppPool时,Status属性
始终
为
空
。
Get
-IISAppPool | Select-Object Status 应用程序池正在运行,并且名称正确。
浏览 42
提问于2019-06-21
得票数 1
回答已采纳
3
回答
自定义ASP.NET SqlMembershipProvider -处理连接字符串
name, NameValueCollection config) base.Initialize(name, config); }SqlConnection conn =new SqlConnection(Configu
浏览 0
提问于2010-09-22
得票数 3
回答已采纳
2
回答
MVC web api
GET
参数
始终
为
空
、
、
、
、
下面是我的ajax调用 type: "
GET
", }和我的控制器 { 我的模型{
浏览 2
提问于2014-06-16
得票数 0
1
回答
通过依赖注入从JSON数组传递数据在ASP.NET核心2中不起作用
、
但是不知怎么的,绑定失败了,注入的IOptionsSnapshot.Value.FaqDataList实例
始终
为
空
。 .Build();public class FaqData {} public string Question {
get</e
浏览 0
提问于2018-04-11
得票数 1
回答已采纳
1
回答
.Net核心
Configuration.GetSection
().
Get
<>()不绑定
、
我试图将我的设置从appsettings.json注入到一个对象中,我遵循的是microsoft文档,我的
Configuration.GetSection
().
Get
<>()总是
空
的,我使用的文档就是这个MongoSettings public string ConnectionString;} 我使用下面的代码来填充我的注入,它总是
空
的
Configuration.GetSection
("MongoSettings
浏览 1
提问于2018-08-19
得票数 6
回答已采纳
点击加载更多
相关
资讯
MKVToolNix 21.0.0发布,mkvinfo的GUI部分已删除
这几招轻松解决空指针!
Python基础教程 字典方法
Python的Socket知识7:队列、生产者消费者模型
了解JavaScript新特性:Optional Chaining
热门
标签
更多标签
云服务器
ICP备案
云直播
即时通信 IM
实时音视频
活动推荐
运营活动
广告
关闭
领券