CmisSync.Lib.Storage.Database.MetaDataStorage.GetId C# (CSharp) Method

GetId() private method

Gets the identifier of the given object and throws Exceptions if object or remote object id is null
private GetId ( IMappedObject obj ) : string
obj IMappedObject /// Object with the containing remote id. ///
return string
        private string GetId(IMappedObject obj) {
            if (obj == null) {
                throw new ArgumentNullException("obj");
            }

            string id = obj.RemoteObjectId;
            if (id == null) {
                throw new ArgumentException("The given object has no remote object id", "obj");
            }

            return id;
        }