www.pudn.com > Proximity-sample.zip > Constants.h, change:2012-06-01,size:1217b


//********************************************************* 
// 
// Copyright (c) Microsoft. All rights reserved. 
// This code is licensed under the Microsoft Public License. 
// THIS CODE IS PROVIDED *AS IS* WITHOUT WARRANTY OF 
// ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY 
// IMPLIED WARRANTIES OF FITNESS FOR A PARTICULAR 
// PURPOSE, MERCHANTABILITY, OR NON-INFRINGEMENT. 
// 
//********************************************************* 
 
#pragma once 
 
#include <collection.h> 
 
namespace ProximityCPP 
{ 
    public value struct Scenario 
    { 
        Platform::String^ Title; 
        Platform::String^ ClassName; 
    }; 
 
    partial ref class MainPage 
    { 
    public: 
        static property Platform::String^ FEATURE_NAME  
        { 
            Platform::String^ get()  
            {   
                return ref new Platform::String(L"Proximity C++ Sample");  
            } 
        } 
 
        static property Platform::Array<Scenario>^ scenarios  
        { 
            Platform::Array<Scenario>^ get()  
            {  
                return scenariosInner;  
            } 
        } 
    private: 
        static Platform::Array<Scenario>^ scenariosInner; 
    }; 
 
 
}