ModelService.FromName 메서드 (ModelItem, String, StringComparison)

파생 클래스에서 재정의하는 경우 지정된 범위에서 지정된 이름 및 비교 조건에 맞는 모델 항목을 찾습니다.

네임스페이스:  Microsoft.Windows.Design.Services
어셈블리:  Microsoft.Windows.Design.Interaction(Microsoft.Windows.Design.Interaction.dll)

구문

‘선언
Public MustOverride Function FromName ( _
    scope As ModelItem, _
    name As String, _
    comparison As StringComparison _
) As ModelItem
public abstract ModelItem FromName(
    ModelItem scope,
    string name,
    StringComparison comparison
)
public:
virtual ModelItem^ FromName(
    ModelItem^ scope, 
    String^ name, 
    StringComparison comparison
) abstract
abstract FromName : 
        scope:ModelItem * 
        name:string * 
        comparison:StringComparison -> ModelItem 
public abstract function FromName(
    scope : ModelItem, 
    name : String, 
    comparison : StringComparison
) : ModelItem

매개 변수

  • comparison
    형식: System.StringComparison
    이름이 비교되는 방식을 지정합니다.기본적으로는 Ordinal 속성을 사용하여 비교합니다.

반환 값

형식: Microsoft.Windows.Design.Model.ModelItem
이름이 name과 일치하는 모델 항목이거나, 일치 항목이 없으면 nullNull 참조(Visual Basic의 경우 Nothing)입니다.

설명

scope를 제공하지 않으면 루트 요소가 범위로 사용됩니다. scope를 제공하면 계층 구조에서 가장 가까운 INameScope 인터페이스를 사용하여 항목을 찾습니다.

.NET Framework 보안

  • 직접 실행 호출자의 경우 완전히 신뢰합니다. 이 멤버는 부분적으로 신뢰할 수 있는 코드에서 사용할 수 없습니다. 자세한 내용은 부분 신뢰 코드에서 라이브러리 사용을 참조하십시오.

참고 항목

참조

ModelService 클래스

FromName 오버로드

Microsoft.Windows.Design.Services 네임스페이스

ModelItem

ViewService

DesignerView

ContextItemManager

기타 리소스

모델 아키텍처 편집

WPF Designer 확장성