public IgnoredEntity ( IDocument doc, IPathMatcher matcher ) : System | ||
doc | IDocument | Ignored document. |
matcher | IPathMatcher | Path matcher to create local path. |
return | System |
public IgnoredEntity(IDocument doc, IPathMatcher matcher) {
if (doc == null) {
throw new ArgumentNullException("doc");
}
if (matcher == null) {
throw new ArgumentNullException("matcher");
}
if (!matcher.CanCreateLocalPath(doc)) {
throw new ArgumentException("Cannot create a local path for the given remote folder");
}
this.ObjectId = doc.Id;
this.LocalPath = matcher.CreateLocalPath(doc);
}
}
IgnoredEntity::IgnoredEntity ( IFolder folder, IPathMatcher matcher ) : System |