Here is a small code snippet to extract the strong name value from a BizTalk message stream.
//messageStream is the stream extracted from the BizTalk pipeline context
XmlDocument xmlDoc = new XmlDocument();
xmlDoc.Load(messageStream);
string documentMessageType = xmlDoc.DocumentElement.NamespaceURI + “#” + xmlDoc.DocumentElement.LocalName;
IDocumentSpec documentSpec = pContext.GetDocumentSpecByType(documentMessageType);
string documentStrongName = documentSpec.DocSpecStrongName;
Happy coding J