VCFilter.CanMove 메서드
필터를 지정된 위치로 옮길 수 있으면 true를 반환합니다.
네임스페이스: Microsoft.VisualStudio.VCProjectEngine
어셈블리: Microsoft.VisualStudio.VCProjectEngine(Microsoft.VisualStudio.VCProjectEngine.dll)
구문
‘선언
Function CanMove ( _
Parent As Object _
) As Boolean
bool CanMove(
Object Parent
)
bool CanMove(
[InAttribute] Object^ Parent
)
abstract CanMove :
Parent:Object -> bool
function CanMove(
Parent : Object
) : boolean
매개 변수
Parent
형식: Object필수입니다. 필터를 이동하려는 폴더 또는 프로젝트입니다.
반환 값
형식: Boolean
필터를 지정된 위치로 옮길 수 있으면 true이고, 그렇지 않으면 false입니다.
설명
참고 방법: 프로젝트 모델 확장성에 대한 예제 코드 컴파일 컴파일 및이 예제를 실행 하는 방법에 대 한 내용은.
예제
다음 예제에서는 CanMove 통합된 개발 환경 (IDE)에서:
' Macro code.
' add reference to Microsoft.VisualStudio.VCProjectEngine
Imports EnvDTE
Imports Microsoft.VisualStudio.VCProjectEngine
Public Module Module1
Sub Test()
Dim mycollection As IVCCollection
Dim filter, filter2 As VCFilter
Dim prj As VCProject
Dim ret As Boolean
prj = DTE.Solution.Projects.Item(1).Object
mycollection = prj.Filters
'mycollection.Count has count of files
filter = mycollection.Item(1)
filter2 = mycollection.Item(2)
ret = filter.CanMove(filter2)
MsgBox(ret)
End Sub
End Module
.NET Framework 보안
- 직접 실행 호출자의 경우 완전히 신뢰합니다. 이 멤버는 부분적으로 신뢰할 수 있는 코드에서 사용할 수 없습니다. 자세한 내용은 부분 신뢰 코드에서 라이브러리 사용를 참조하세요.