当前位置 : 主页 > 编程语言 > c语言 >

c# – 生成的线程会自动作为用户的身份运行吗?

来源:互联网 收集:自由互联 发布时间:2021-06-25
即 static void Main(string[] args){ var thread = new Thread(WhoAmI); thread.Start();}static void WhoAmI(){ //can i access network resources as the user who ran Main?} 是的,他们这样做. // So yes, you can.

static void Main(string[] args)
{
    var thread = new Thread(WhoAmI);
    thread.Start();
}

static void WhoAmI()
{ 
    //can i access network resources as the user who ran Main?
}
是的,他们这样做.

// So yes, you can.
网友评论