当前位置: 首页>>代码示例>>C#>>正文


C# ErrCode类代码示例

本文整理汇总了C#中ErrCode的典型用法代码示例。如果您正苦于以下问题:C# ErrCode类的具体用法?C# ErrCode怎么用?C# ErrCode使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


ErrCode类属于命名空间,在下文中一共展示了ErrCode类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: LoadMediaForConnectId

    public List<MediaDetails> LoadMediaForConnectId(int connection_id, out ErrCode err)
    {
        err = new ErrCode();

        List<MediaDetails> mediaList = SiteProvider.CurrentProvider.LoadMediaForConnectId(connection_id, out err);

        return mediaList;
    }
开发者ID:basvas,项目名称:kalina,代码行数:8,代码来源:SqlProviderService.cs

示例2: EnumProviders

 private static ProviderInfo[] EnumProviders(out uint [] provTypes)
 {
     ArrayList alProv = new ArrayList();
     ArrayList alProvType = new ArrayList();
     uint dwIndex = 0;
     uint dwReserved = 0;
     uint dwFlags = 0;
     uint dwProvType = 0;
     uint cbProvName = 0;
     StringBuilder sProv = new StringBuilder();
     while ( true )
     {
         bool retVal = Crypto.CryptEnumProviders(dwIndex, ref dwReserved, dwFlags, ref dwProvType, sProv, ref cbProvName);
         ErrCode [] eca = new ErrCode[]{ErrCode.NO_MORE_ITEMS, ErrCode.MORE_DATA};
         ErrCode ec = Error.HandleRetVal(retVal, eca);
         if ( !retVal )
         {
             if ( ec == ErrCode.NO_MORE_ITEMS )
                 break;
             if ( ec != ErrCode.MORE_DATA )
                 break;
         }
         sProv = new System.Text.StringBuilder((int)cbProvName);
         retVal = Crypto.CryptEnumProviders(dwIndex, ref dwReserved, dwFlags, ref dwProvType, sProv, ref cbProvName);
         ec = Error.HandleRetVal(retVal);
         dwIndex = dwIndex + 1;
         cbProvName = 0;
         ProviderInfo pi = new ProviderInfo();
         pi.name = sProv.ToString().TrimEnd(new char['\0']);
         pi.type = (ProvType) dwProvType;
         alProv.Add(pi);
         if(alProvType.Contains(dwProvType) == false)
             alProvType.Add(dwProvType);
     }
     provTypes = new uint[alProvType.Count];
     alProvType.CopyTo(0, provTypes, 0, provTypes.Length);
     ProviderInfo [] pia = new ProviderInfo[alProv.Count];
     alProv.CopyTo(0, pia, 0, pia.Length);
     return pia;
 }
开发者ID:simm0n,项目名称:Synchronizr,代码行数:40,代码来源:Prov.cs

示例3: HandleRetVal

 public static ErrCode HandleRetVal(bool retVal, ErrCode expected)
 {
     ErrCode [] eca = new ErrCode[1];
     eca[0] = expected;
     return HandleRetVal(retVal, eca);
 }
开发者ID:ericleigh007,项目名称:flickr-net,代码行数:6,代码来源:Error.cs

示例4: SaveAllFrequencies

    public List<int> SaveAllFrequencies(FrequencyDetails[] frequencies, out ErrCode err)
    {
        List<int> ids = SiteProvider.CurrentProvider.SaveAllFrequencies(frequencies, out err);

        return ids;
    }
开发者ID:basvas,项目名称:kalina,代码行数:6,代码来源:SqlProviderService.cs

示例5: SaveChannel

    public ErrCode SaveChannel(DAL.Channel channel, out int id)
    {
        id = 0;
        ErrCode err = new ErrCode();
        SiteProvider.CurrentProvider.SaveChannel(channel, out id);

        return err;
    }
开发者ID:basvas,项目名称:kalina,代码行数:8,代码来源:SqlProviderService.cs

示例6: LoadTimeBase

    public List<TimeMarkDetails> LoadTimeBase(int idMark, out ErrCode err)
    {
        err = null;
        List<TimeMarkDetails> tmdl = SiteProvider.CurrentProvider.LoadTimeBase(idMark, out err);

        return tmdl;
    }
开发者ID:basvas,项目名称:kalina,代码行数:7,代码来源:SqlProviderService.cs

示例7: LoadVariants

    public List<VariantDetails> LoadVariants(out ErrCode err)
    {
        err = null;
        List<VariantDetails> variants = SiteProvider.CurrentProvider.LoadVariants(out err);

        return variants;
    }
开发者ID:basvas,项目名称:kalina,代码行数:7,代码来源:SqlProviderService.cs

示例8: LoadPorts

    public ElementPorts LoadPorts(int element_id, out ErrCode err)
    {
        err = new ErrCode();

        ElementPorts eps = SiteProvider.CurrentProvider.LoadPorts(element_id, out err);

        return eps;
    }
开发者ID:basvas,项目名称:kalina,代码行数:8,代码来源:SqlProviderService.cs

示例9: LoadPriorities

    public List<PriorityDetails> LoadPriorities(out ErrCode err)
    {
        err = null;
        List<PriorityDetails> pds = SiteProvider.CurrentProvider.LoadAllPriorities(out err);

        return pds;
    }
开发者ID:basvas,项目名称:kalina,代码行数:7,代码来源:SqlProviderService.cs

示例10: LoadPlaneElements

    public List<PEDetails> LoadPlaneElements(int variant_id, out ErrCode err)
    {
        err = null;
        List<PEDetails> pes = SiteProvider.CurrentProvider.LoadPEs(variant_id, out err);

        return pes;
    }
开发者ID:basvas,项目名称:kalina,代码行数:7,代码来源:SqlProviderService.cs

示例11: LoadPlanes

    public List<PlaneDetails> LoadPlanes(out ErrCode err)
    {
        err = null;
        List<PlaneDetails> planes = SiteProvider.CurrentProvider.LoadPlanes(out err);

        return planes;
    }
开发者ID:basvas,项目名称:kalina,代码行数:7,代码来源:SqlProviderService.cs

示例12: LoadNAnnientedPlanes

    public List<PlaneDetails> LoadNAnnientedPlanes(out ErrCode err)
    {
        err = null;
        List<PlaneDetails> pds = SiteProvider.CurrentProvider.LoadNAnnientedAndNExecutedPlanes(out err);

        return pds;
    }
开发者ID:basvas,项目名称:kalina,代码行数:7,代码来源:SqlProviderService.cs

示例13: LoadModes

    public List<ModeDetails> LoadModes(out ErrCode err)
    {
        err = null;
        List<ModeDetails> mds = SiteProvider.CurrentProvider.LoadModes(out err);

        return mds;
    }
开发者ID:basvas,项目名称:kalina,代码行数:7,代码来源:SqlProviderService.cs

示例14: LoadMediumStyles

    public List<MediumStyle> LoadMediumStyles(out ErrCode err)
    {
        List<MediumStyle> styles = SiteProvider.CurrentProvider.LoadMediumStyles(out err);

        return styles;
    }
开发者ID:basvas,项目名称:kalina,代码行数:6,代码来源:SqlProviderService.cs

示例15: LoadTemporalAxis

    public List<TemporalAxisDetails> LoadTemporalAxis(int idVariant, out ErrCode err)
    {
        err = null;
        List<TemporalAxisDetails> tadl = SiteProvider.CurrentProvider.LoadTemporalAxis(idVariant, out err);

        return tadl;
    }
开发者ID:basvas,项目名称:kalina,代码行数:7,代码来源:SqlProviderService.cs


注:本文中的ErrCode类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。