private void Parse(string rawString)
        {
            if (string.IsNullOrEmpty(rawString))
            {
                return;
            }
            this.identifier = rawString.Trim();
            SearchObjectId searchObjectId;

            if (SearchObjectId.TryParse(this.identifier, out searchObjectId))
            {
                this.objectIdentifier = searchObjectId;
                return;
            }
            if (this.identifier[this.identifier.Length - 1] == '*')
            {
                this.isFullyQualified = false;
                this.identifier       = this.identifier.TrimEnd(new char[]
                {
                    '*'
                });
            }
        }
示例#2
0
        internal static bool IsLegacySearchObjectIdentity(string identity)
        {
            SearchObjectId searchObjectId;

            return(identity != null && SearchObjectId.TryParse(identity, out searchObjectId));
        }