I assigned some value to object data type like,
object objData =dc.GetDirectoryEntry().Properties[\"objectGUID\"].Value;
this object retun the
The long form would be (enter link description here):
public static string ConvertGuidToOctectString(string objectGuid)
{
System.Guid guid = new Guid(objectGuid);
byte[] byteGuid = guid.ToByteArray();
string queryGuid = "";
foreach (byte b in byteGuid)
{
queryGuid += @"\" + b.ToString("x2");
}
return queryGuid;
}