using CSC = CommunityServer.Components;


        /// <summary>
        
/// Specifies if this post should be seen as anonymous by
        
/// the user who posted it.
        
/// </summary>
        public bool IsAnonymousPost {
            
get { 
                
// We have to use integral types
                return IsPostConfigurationValueSet( (int) CSC.PostConfiguration.IsAnonymousPost );
            }
            
set {
                
if (value == true)
                    SetPostConfigurationValueValue( (
int) CSC.PostConfiguration.IsAnonymousPost, false );
                
else {
                    SetPostConfigurationValueValue( (
int) CSC.PostConfiguration.IsAnonymousPost, true );
                }
            }
        }


这样就不用每次都写CommunityServer.Components这么长的东东了
posted on 2006-03-10 13:20  今夜太冷  阅读(173)  评论(0)    收藏  举报