开发者

Obtain domain of computer

开发者 https://www.devze.com 2023-01-11 17:57 出处:网络
i am using a sh开发者_如何学运维arepoint portal over a computer. how i can obtain domain of that computer.You can write your own WebPart and that WebPart can utilize System.DirectoryServices.ActiveDir

i am using a sh开发者_如何学运维arepoint portal over a computer. how i can obtain domain of that computer.


You can write your own WebPart and that WebPart can utilize System.DirectoryServices.ActiveDirectory.Domain with code that looks like -

Domain domain = Domain.GetCurrentDomain();
output.write( domain.Name );

Something like that should work.

0

精彩评论

暂无评论...
验证码 换一张
取 消