开发者

Obtain domain of computer

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜