SecurityElement.IsValidAttributeValue(String) 메서드
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
문자열이 유효한 특성 값인지 여부를 확인합니다.
public:
static bool IsValidAttributeValue(System::String ^ value);
public static bool IsValidAttributeValue (string? value);
public static bool IsValidAttributeValue (string value);
static member IsValidAttributeValue : string -> bool
Public Shared Function IsValidAttributeValue (value As String) As Boolean
매개 변수
- value
- String
유효성을 테스트할 특성 값입니다.
반환
value
매개 변수가 유효한 XML 특성 값이면 true
이고, 그렇지 않으면 false
입니다.
예제
다음 코드에서는 메서드를 사용 하 여 IsValidAttributeValue 문자열이 유효한 특성 값 인지 여부를 확인 하는 방법을 보여 줍니다. 이 코드 예제는에 대해 제공 된 큰 예제의 일부는 SecurityElement 클래스입니다.
if ( SecurityElement::IsValidAttributeName( attributeName ) &&
SecurityElement::IsValidAttributeValue( attributeValue ) )
if (SecurityElement.IsValidAttributeName(attributeName) &&
SecurityElement.IsValidAttributeValue(attributeValue))
If SecurityElement.IsValidAttributeName(attributeName) AndAlso SecurityElement.IsValidAttributeValue(attributeValue) Then
설명
이 메서드를 보안 요소에 추가 하기 전에 특성을 테스트 하는 데 사용할 수 있습니다.