언어

WebPartPersonalization.IsModifiable 속성

정의

현재 사용자에게 상태 정보를 수정할 권한이 있는지 여부를 나타내는 값을 가져옵니다.

public:
 property bool IsModifiable { bool get(); };
[System.ComponentModel.Browsable(false)]
public bool IsModifiable { get; }
[<System.ComponentModel.Browsable(false)>]
member this.IsModifiable : bool
Public ReadOnly Property IsModifiable As Boolean

속성 값

true사용자에게 상태 정보를 수정할 권한이 있으면 이고, 그렇지 않으면 . false

특성

예제

다음 코드에서는 속성을 사용하는 방법을 보여 줍니다 IsModifiable . 이 코드는 클래스 설명에 있는 더 큰 코드 샘플의 WebPartPersonalization 일부입니다.

// Resets all of a user and shared personalization data for the page.
  protected void Reset_CurrentState_Button_Click(object src, EventArgs e)
  {
      // User must be authorized to modify state before a reset can occur.
      //When in user scope, all users by default can change their own data.
      if (_manager.Personalization.IsModifiable)
      {
          _manager.Personalization.ResetPersonalizationState();
      }
  }
' Resets all of a user and shared personalization data for the page.
Protected Sub Reset_CurrentState_Button_Click(ByVal src As Object, ByVal e As EventArgs) 
    ' User must be authorized to modify state before a reset can occur.
    'When in user scope, all users by default can change their own data.
    If _manager.Personalization.IsModifiable Then
        _manager.Personalization.ResetPersonalizationState()
    End If

End Sub 'Reset_CurrentState_Button_Click

설명

이 속성이 처음 호출되면 개인 설정 상태를 수정할 수 있는 사용자의 권한을 결정하는 결과를 캐시합니다. UserCapabilities 이 속성을 처음 호출한 후 사전이 수정된 경우 변경 내용은 이 속성에 대한 후속 호출에 반영되지 않습니다.

적용 대상

참고 항목