SenseNet.ContentRepository.ImportContext.GetAttachmentStream C# (CSharp) Метод

GetAttachmentStream() приватный Метод

private GetAttachmentStream ( string attachmentName ) : Stream
attachmentName string
Результат Stream
        internal Stream GetAttachmentStream(string attachmentName)
        {
            string path = Path.Combine(CurrentDirectory, attachmentName);
            if (!System.IO.File.Exists(path))
            {
                if (Repository.SkipBinaryImport)
                    return null;
                else
                    throw new FileNotFoundException("Attachment is not found", path);
            }
            return new FileStream(path, FileMode.Open, FileAccess.Read);
        }