Simon Mourier's Avatar
Simon Mourier's blog (1807 answers on StackOverflow) about Microsoft technologies C#, C/C++, .NET, WinRT, WinUI3, AOT, P/Invoke, COM, Interop, DirectX, Direct2D, Windows, ...
  • 🔎︎ Search
  • Categories
  • Archives
  • About Me
  • .net
  • wcf

PrincipalPermission attribute on Service contract

Nov 22, 2012 See the question and my original answer on StackOverflow

The role is checked at runtime, using the attributes put on the implementing method, not the attributes put on the interface the method implements. More generally in .NET there is not direct relation between custom attributes put on a method and custom attributes put on the corresponding interface method, if any.

  • SmoBlog © 2010-2026 Simon Mourier. All rights reserved.
  • Privacy & Terms