C# Class SharePointPnP.PowerShell.Commands.Provider.SPOProvider

Inheritance: System.Management.Automation.Provider.NavigationCmdletProvider, IContentCmdletProvider
Mostra file Open project: OfficeDev/PnP-PowerShell

Public Methods

Method Description
ClearContent ( string path ) : void
ClearContentDynamicParameters ( string path ) : object
GetContentReader ( string path ) : IContentReader
GetContentReaderDynamicParameters ( string path ) : object
GetContentWriter ( string path ) : IContentWriter
GetContentWriterDynamicParameters ( string path ) : object

Protected Methods

Method Description
CopyItem ( string path, string copyPath, bool recurse ) : void
GetChildItems ( string path, bool recurse ) : void
GetChildName ( string path ) : string
GetChildNames ( string path, ReturnContainers returnContainers ) : void
GetItem ( string path ) : void
GetParentPath ( string path, string root ) : string
HasChildItems ( string path ) : bool
IsItemContainer ( string path ) : bool
IsValidPath ( string path ) : bool
ItemExists ( string path ) : bool
MakePath ( string parent, string child ) : string
MoveItem ( string path, string destination ) : void
NewDrive ( System.Management.Automation.PSDriveInfo drive ) : System.Management.Automation.PSDriveInfo
NewDriveDynamicParameters ( ) : object
NewItem ( string path, string itemTypeName, object newItemValue ) : void
NormalizeRelativePath ( string path, string basePath ) : string
RemoveDrive ( System.Management.Automation.PSDriveInfo drive ) : System.Management.Automation.PSDriveInfo
RemoveItem ( string path, bool recurse ) : void
RenameItem ( string path, string newName ) : void
Start ( System.Management.Automation.ProviderInfo providerInfo ) : System.Management.Automation.ProviderInfo

Private Methods

Method Description
CopyMoveImplementation ( string sourcePath, string targetPath, bool recurse = false, bool isCopyOperation = true, bool reCreateSourceFolder = true ) : void
ExecuteObjectSearch ( string serverRelativePath, Web web ) : object
FindWebInPath ( string serverRelativePath ) : Web
GetCachedChildItems ( string serverRelativePath ) : IEnumerable
GetCachedItem ( string serverRelativePath ) : SharePointPnP.PowerShell.Commands.Provider.SPODriveCacheItem
GetCachedWeb ( string serverRelativePath ) : SharePointPnP.PowerShell.Commands.Provider.SPODriveCacheWeb
GetCurrentDrive ( string path ) : SharePointPnP.PowerShell.Commands.Provider.SPODriveInfo
GetDrive ( string path ) : SharePointPnP.PowerShell.Commands.Provider.SPODriveInfo
GetFileOrFolder ( string path, bool throwError = true, bool useChache = true ) : object
GetFolderItems ( Folder folder, bool throwError = false ) : IEnumerable
GetParentServerRelativePath ( string path ) : string
GetServerRelativePath ( string path ) : string
GetWebRelativePath ( string serverRelativePath ) : string
IsInSameSiteCollection ( Web web1, Web web2 ) : bool
IsPathDrive ( string path ) : bool
IsPropertyAvailable ( ClientObject clientObject, string propertyName ) : bool
IsSameWeb ( Web web1, Web web2 ) : bool
NormalizePath ( string path ) : string
RemoveDriveFromPath ( string path ) : string
SetCachedChildItems ( string parentServerRelativePath, IEnumerable childItems ) : void
SetCachedItem ( string serverRelativePath, object obj ) : void
SetCachedWeb ( string serverRelativePath, Web web ) : void
SetCounter ( ClientRuntimeContext ctx ) : void
WriteErrorInternal ( string message, object path, ErrorCategory errorCategory = ErrorCategory.NotSpecified, bool terminate = false, Exception exception = null ) : void

Method Details

ClearContent() public method

public ClearContent ( string path ) : void
path string
return void

ClearContentDynamicParameters() public method

public ClearContentDynamicParameters ( string path ) : object
path string
return object

CopyItem() protected method

protected CopyItem ( string path, string copyPath, bool recurse ) : void
path string
copyPath string
recurse bool
return void

GetChildItems() protected method

protected GetChildItems ( string path, bool recurse ) : void
path string
recurse bool
return void

GetChildName() protected method

protected GetChildName ( string path ) : string
path string
return string

GetChildNames() protected method

protected GetChildNames ( string path, ReturnContainers returnContainers ) : void
path string
returnContainers ReturnContainers
return void

GetContentReader() public method

public GetContentReader ( string path ) : IContentReader
path string
return IContentReader

GetContentReaderDynamicParameters() public method

public GetContentReaderDynamicParameters ( string path ) : object
path string
return object

GetContentWriter() public method

public GetContentWriter ( string path ) : IContentWriter
path string
return IContentWriter

GetContentWriterDynamicParameters() public method

public GetContentWriterDynamicParameters ( string path ) : object
path string
return object

GetItem() protected method

protected GetItem ( string path ) : void
path string
return void

GetParentPath() protected method

protected GetParentPath ( string path, string root ) : string
path string
root string
return string

HasChildItems() protected method

protected HasChildItems ( string path ) : bool
path string
return bool

IsItemContainer() protected method

protected IsItemContainer ( string path ) : bool
path string
return bool

IsValidPath() protected method

protected IsValidPath ( string path ) : bool
path string
return bool

ItemExists() protected method

protected ItemExists ( string path ) : bool
path string
return bool

MakePath() protected method

protected MakePath ( string parent, string child ) : string
parent string
child string
return string

MoveItem() protected method

protected MoveItem ( string path, string destination ) : void
path string
destination string
return void

NewDrive() protected method

protected NewDrive ( System.Management.Automation.PSDriveInfo drive ) : System.Management.Automation.PSDriveInfo
drive System.Management.Automation.PSDriveInfo
return System.Management.Automation.PSDriveInfo

NewDriveDynamicParameters() protected method

protected NewDriveDynamicParameters ( ) : object
return object

NewItem() protected method

protected NewItem ( string path, string itemTypeName, object newItemValue ) : void
path string
itemTypeName string
newItemValue object
return void

NormalizeRelativePath() protected method

protected NormalizeRelativePath ( string path, string basePath ) : string
path string
basePath string
return string

RemoveDrive() protected method

protected RemoveDrive ( System.Management.Automation.PSDriveInfo drive ) : System.Management.Automation.PSDriveInfo
drive System.Management.Automation.PSDriveInfo
return System.Management.Automation.PSDriveInfo

RemoveItem() protected method

protected RemoveItem ( string path, bool recurse ) : void
path string
recurse bool
return void

RenameItem() protected method

protected RenameItem ( string path, string newName ) : void
path string
newName string
return void

Start() protected method

protected Start ( System.Management.Automation.ProviderInfo providerInfo ) : System.Management.Automation.ProviderInfo
providerInfo System.Management.Automation.ProviderInfo
return System.Management.Automation.ProviderInfo