C# 클래스 Microsoft.VisualStudio.Project.TrackDocumentsHelper

Used by a project to query the environment for permission to add, remove, or rename a file or directory in a solution
파일 보기 프로젝트 열기: tunnelvisionlabs/MPFProj10 1 사용 예제들

공개 메소드들

메소드 설명
CanAddItems ( string files, VSQUERYADDFILEFLAGS flags ) : bool

Asks the environment for permission to add files.

CanRemoveItems ( string files, VSQUERYREMOVEFILEFLAGS flags ) : bool

Asks the environment for permission to remove files.

CanRenameItem ( string oldFileName, string newFileName, VSRENAMEFILEFLAGS flag ) : bool

Asks the environment for permission to rename files.

OnItemAdded ( string file, VSADDFILEFLAGS flag ) : void

Notify the environment about a file just added

OnItemRemoved ( string file, VSREMOVEFILEFLAGS flag ) : void

Notify the environment about a file just removed

OnItemRenamed ( string strOldName, string strNewName, VSRENAMEFILEFLAGS flag ) : void

Get's called to tell the env that a file was renamed

TrackDocumentsHelper ( ProjectNode project ) : System

보호된 메소드들

메소드 설명
GetIVsTrackProjectDocuments2 ( ) : IVsTrackProjectDocuments2

Gets the IVsTrackProjectDocuments2 object by asking the service provider for it.

메소드 상세

CanAddItems() 공개 메소드

Asks the environment for permission to add files.
public CanAddItems ( string files, VSQUERYADDFILEFLAGS flags ) : bool
files string The files to add.
flags VSQUERYADDFILEFLAGS The VSQUERYADDFILEFLAGS flags associated to the files added
리턴 bool

CanRemoveItems() 공개 메소드

Asks the environment for permission to remove files.
public CanRemoveItems ( string files, VSQUERYREMOVEFILEFLAGS flags ) : bool
files string an array of files to remove
flags VSQUERYREMOVEFILEFLAGS The VSQUERYREMOVEFILEFLAGS associated to the files to be removed.
리턴 bool

CanRenameItem() 공개 메소드

Asks the environment for permission to rename files.
public CanRenameItem ( string oldFileName, string newFileName, VSRENAMEFILEFLAGS flag ) : bool
oldFileName string Path to the file to be renamed.
newFileName string Path to the new file.
flag VSRENAMEFILEFLAGS The VSRENAMEFILEFLAGS associated with the file to be renamed.
리턴 bool

GetIVsTrackProjectDocuments2() 보호된 메소드

Gets the IVsTrackProjectDocuments2 object by asking the service provider for it.
protected GetIVsTrackProjectDocuments2 ( ) : IVsTrackProjectDocuments2
리턴 IVsTrackProjectDocuments2

OnItemAdded() 공개 메소드

Notify the environment about a file just added
public OnItemAdded ( string file, VSADDFILEFLAGS flag ) : void
file string
flag VSADDFILEFLAGS
리턴 void

OnItemRemoved() 공개 메소드

Notify the environment about a file just removed
public OnItemRemoved ( string file, VSREMOVEFILEFLAGS flag ) : void
file string
flag VSREMOVEFILEFLAGS
리턴 void

OnItemRenamed() 공개 메소드

Get's called to tell the env that a file was renamed
public OnItemRenamed ( string strOldName, string strNewName, VSRENAMEFILEFLAGS flag ) : void
strOldName string
strNewName string
flag VSRENAMEFILEFLAGS
리턴 void

TrackDocumentsHelper() 공개 메소드

public TrackDocumentsHelper ( ProjectNode project ) : System
project ProjectNode
리턴 System