Convert byte[] or object to GUID

前端 未结 5 1828
别那么骄傲
别那么骄傲 2021-02-12 10:20

I assigned some value to object data type like,

object objData =dc.GetDirectoryEntry().Properties[\"objectGUID\"].Value;

this object retun the

5条回答
  •  有刺的猬
    2021-02-12 11:10

    The System.DirectoryServices.DirectoryEntry class has the property Guid for this purpose - no need to access the objectGUID attribute through Properties.

提交回复
热议问题